org.hibernate.MappingException: Unknown entity: java.util.ArrayList

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by Ajay Singh
, 1 year ago
Unknown entity: com.example.hibernate.User
via Stack Overflow by shadow
, 9 months ago
Unknown entity: com.demo.domain.AuditLog
via Stack Overflow by Sayan Pal
, 1 year ago
via Stack Overflow by alireza sadeghi
, 11 months ago
Unknown entity: com.simpleProgrammer.User
org.hibernate.MappingException: Unknown entity: java.util.ArrayList
at org.hibernate.metamodel.internal.MetamodelImpl.entityPersister(
at org.hibernate.internal.SessionImpl.getEntityPersister(
at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(
at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(
at org.hibernate.event.internal.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(
at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsTransient(
at org.hibernate.event.internal.DefaultSaveEventListener.performSaveOrUpdate(
at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(
at org.hibernate.internal.SessionImpl.fireSave(
at basic.Runner.main(

Users with the same issue

Once, 5 months ago

Write tip

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