org.hibernate.MappingException: Unknown entity: com.gontuseries.hibernate.Employee

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via gontu.org by Unknown author, 1 year ago
Unknown entity: com.gontuseries.hibernate.Employee
via gontu.org by Unknown author, 1 year ago
via Stack Overflow by Abhinav
, 1 year ago
Unknown entity: com.abhinav.hibernate.UserDetails
via Stack Overflow by Amir Shabani
, 1 year ago
via Sakai JIRA by Bram Luyten (@mire), 1 year ago
Unknown entity: org.dspace.app.requestitem.RequestItem
via Sakai JIRA by Bram Luyten (Atmire), 1 year ago
Unknown entity: org.dspace.app.requestitem.RequestItem
org.hibernate.MappingException: Unknown entity: com.gontuseries.hibernate.Employee
at org.hibernate.internal.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:776)
at org.hibernate.internal.SessionImpl.getEntityPersister(SessionImpl.java:1542)
at org.hibernate.engine.internal.ForeignKeys.isTransient(ForeignKeys.java:225)
at org.hibernate.event.internal.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:499)
at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:99)
at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:58)
at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:778)
at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:751)
at com.gontuseries.hibernate.Main.main(Main.java:14)

Users with the same issue

Once, 1 month ago
Once, 1 year ago
10 times, 1 year ago
6 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 11 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.