org.hibernate.MappingException: Unknown entity: com.journaldev.hibernate.model.Employee

journaldev.com | 2 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

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

    journaldev.com | 9 months ago
    org.hibernate.MappingException: Unknown entity: com.journaldev.hibernate.model.Employee
  2. 0

    Hibernate Tutorial For Beginners - JournalDev

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

    Hibernate: org.hibernate.MappingException: Unknown entity: entity.Item

    Stack Overflow | 3 years ago | Volodymyr Bakhmatiuk
    org.hibernate.MappingException: Unknown entity: entity.Item
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate4: mappings in hibernate.cfg.xml not parsed

    Stack Overflow | 3 years ago | user2432405
    org.hibernate.MappingException: Unknown entity: com.lithops.ims.domain.TradeHistory
  6. 0

    Hibernate InvocationTargetException by saving

    Stack Overflow | 1 year ago | Fabian
    org.hibernate.MappingException: Unknown entity: de.fani.cooking.object.User

    4 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.journaldev.hibernate.model.Employee

      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. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    4. Hibernate
      ThreadLocalSessionContext$TransactionProtectionWrapper.invoke
      1. org.hibernate.context.internal.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:338)
      1 frame
    5. com.sun.proxy
      $Proxy19.save
      1. com.sun.proxy.$Proxy19.save(Unknown Source)
      1 frame
    6. com.journaldev.hibernate
      HibernateMain.main
      1. com.journaldev.hibernate.main.HibernateMain.main(HibernateMain.java:23)
      1 frame