org.hibernate.MappingException: Unknown entity: com.construction.beans.PersonalInfo


Solutions on the web

Solution icon of hibernate
via Hibernate JIRA by Achappan M, 1 year ago
Unknown entity: com.construction.beans.PersonalInfo

Solution icon of hibernate
via Hibernate JIRA by Achappan M, 1 year ago
Unknown entity: com.construction.beans.PersonalInfo

Solution icon of coderanch
via Coderanch by Sanghamitra Parida, 10 months ago
Unknown entity: secDemo.Publisher

Solution icon of coderanch
Unknown entity: java.util.HashSet

Solution icon of spring
via Spring JIRA by Dmitri, 1 year ago
Unknown entity: test.TestVO

Solution icon of hibernate
via Hibernate JIRA by Mandar Shukla, 1 year ago
Unknown entity: com.flylite.ticketing.model.FlightMaster

Solution icon of spring
via Spring JIRA by Dmitri, 1 year ago
Unknown entity: test.TestVO

Solution icon of stackoverflow
Unknown entity: com.mywebservice.domain.Account

Solution icon of stackoverflow
via Stack Overflow by Ali Asad
, 1 year ago
Unknown entity: in.shivasoft.pojo.Users

Solution icon of stackoverflow
Unknown entity: $Proxy2

Stack trace

org.hibernate.MappingException: Unknown entity: com.construction.beans.PersonalInfo
	at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:610)
	at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1246)
	at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:89)
	at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:186)
	at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
	at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:175)
	at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
	at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
	at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:524)
	at org.hibernate.impl.SessionImpl.save(SessionImpl.java:514)
	at org.hibernate.impl.SessionImpl.save(SessionImpl.java:510)
	at com.construction.DB.DBUtil.save(DBUtil.java:48)
	at com.construction.Servlets.AddPersonalInfo.personalInfo(AddPersonalInfo.java:48)
	at com.construction.Servlets.AddPersonalInfo.doGet(AddPersonalInfo.java:25)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
	at java.lang.Thread.run(Unknown Source)

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

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago