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 Stack Overflow by Ajay Singh
, 1 year ago
Unknown entity: com.example.hibernate.User
via Stack Overflow by shadow
, 11 months ago
Unknown entity: com.demo.domain.AuditLog
via Stack Overflow by Hadrian Blackwater
, 1 year ago
via Stack Overflow by Sayan Pal
, 1 year ago
via Stack Overflow by alireza sadeghi
, 1 year ago
Unknown entity: com.simpleProgrammer.User
org.hibernate.MappingException: Unknown entity: com.example.hibernate.User	at org.hibernate.metamodel.internal.MetamodelImpl.entityPersister(MetamodelImpl.java:620)	at org.hibernate.internal.SessionImpl.getEntityPersister(SessionImpl.java:1604)	at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:104)	at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:192)	at org.hibernate.event.internal.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:38)	at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:177)	at org.hibernate.event.internal.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:32)	at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:73)	at org.hibernate.internal.SessionImpl.fireSave(SessionImpl.java:673)	at org.hibernate.internal.SessionImpl.save(SessionImpl.java:665)	at org.hibernate.internal.SessionImpl.save(SessionImpl.java:660)	at com.example.hibernate.Program.main(Program.java:18)