org.hibernate.MappingException: Unknown entity: com.philip.fin.test.User

Stack Overflow | Peng Chen | 5 months ago
  1. 0

    hibernate can't configure POJO by *.hbm.xml

    Stack Overflow | 5 months ago | Peng Chen
    org.hibernate.MappingException: Unknown entity: com.philip.fin.test.User
  2. 0

    Error when try to persist entity with hibernate (MappingException: Unknown entity)

    Stack Overflow | 11 months ago | alexpfx
    org.hibernate.MappingException: Unknown entity: br.com.alexpfx.supermarket.crawler.model.domain.Product
  3. 0

    Hibernate Tutorial For Beginners using XML, Annotations and Property Configurations - JournalDev

    journaldev.com | 6 months ago
    org.hibernate.MappingException: Unknown entity: com.journaldev.hibernate.model.Employee
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate Tutorial For Beginners - JournalDev

    journaldev.com | 3 months ago
    org.hibernate.MappingException: Unknown entity: com.journaldev.hibernate.model.Employee
  6. 0

    Hibernate Mapping Errors due Seperate Modules in IntelliJ?

    Stack Overflow | 2 years ago | MightyApe
    org.hibernate.MappingException: Unknown entity: org.example.ModuleB.Person

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.hibernate.MappingException

      Unknown entity: com.philip.fin.test.User

      at org.hibernate.internal.SessionFactoryImpl.getEntityPersister()
    2. Hibernate
      SessionImpl.save
      1. org.hibernate.internal.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:781)
      2. org.hibernate.internal.SessionImpl.getEntityPersister(SessionImpl.java:1520)
      3. org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:100)
      4. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:192)
      5. org.hibernate.event.internal.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:38)
      6. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:177)
      7. org.hibernate.event.internal.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:32)
      8. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:73)
      9. org.hibernate.internal.SessionImpl.fireSave(SessionImpl.java:679)
      10. org.hibernate.internal.SessionImpl.save(SessionImpl.java:671)
      11. org.hibernate.internal.SessionImpl.save(SessionImpl.java:666)
      11 frames
    3. com.philip.fin
      TestHibernate.main
      1. com.philip.fin.test.TestHibernate.main(TestHibernate.java:37)
      1 frame