net.sf.hibernate.MappingException: Unknown entity class: java.lang.Boolean


Solutions on the web

Solution icon of web
Unknown entity class: java.util.HashSet

Solution icon of googlegroups
via Google Groups by Jason Tesser, 2 months ago
Unknown entity class: com.liferay.portal.ejb.CompanyHBM

Solution icon of coderanch
via Coderanch by Gregg Bolinger, 10 months ago
Unknown entity class: java.lang.Integer

Solution icon of web
via dotcms.com by Unknown author, 1 year ago
Unknown entity class: com.liferay.portal.ejb.CompanyHBM

Solution icon of hibernate
via Hibernate JIRA by Sunil Reddy, 1 year ago
No persister for: java.lang.Boolean

Solution icon of hibernate
via Hibernate JIRA by Sunil Reddy, 1 year ago
No persister for: java.lang.Boolean

Stack trace

net.sf.hibernate.MappingException: Unknown entity class: java.lang.Boolean
	at net.sf.hibernate.impl.SessionFactoryImpl.getPersister(SessionFactoryImpl.java:347)
	at net.sf.hibernate.impl.SessionImpl.getClassPersister(SessionImpl.java:2710)
	at net.sf.hibernate.impl.SessionImpl.getPersister(SessionImpl.java:2717)
	at net.sf.hibernate.impl.SessionImpl.getEntityIdentifierIfNotUnsaved(SessionImpl.java:2779)
	at net.sf.hibernate.type.EntityType.getIdentifier(EntityType.java:66)
	at net.sf.hibernate.type.EntityType.isDirty(EntityType.java:139)
	at net.sf.hibernate.type.TypeFactory.findDirty(TypeFactory.java:225)
	at net.sf.hibernate.persister.AbstractEntityPersister.findDirty(AbstractEntityPersister.java:276)
	at net.sf.hibernate.impl.SessionImpl.flushEntity(SessionImpl.java:2528)
	at net.sf.hibernate.impl.SessionImpl.flushEntities(SessionImpl.java:2478)
	at net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2280)
	at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2259)
	at org.springframework.orm.hibernate.HibernateAccessor.flushIfNecessary(HibernateAccessor.java:214)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.