org.hibernate.MappingException: Unknown entity: com.rustedbrain.model.staff.Manager

Stack Overflow | Alexey Muhin | 5 months ago
  1. 0

    Hibernate exception, unknown entity

    Stack Overflow | 5 months ago | Alexey Muhin
    org.hibernate.MappingException: Unknown entity: com.rustedbrain.model.staff.Manager
  2. 0

    Unknown Entity exception while running hibernate 5.0.1 program

    Stack Overflow | 9 months ago | Abhinav
    org.hibernate.MappingException: Unknown entity: com.abhinav.hibernate.UserDetails
  3. 0

    Hibernate Tutorial part 4 (c) – how to create Hibernate Application (Hands on using Eclipse) – Gontu Series

    gontu.org | 5 months ago
    org.hibernate.MappingException: Unknown entity: com.gontuseries.hibernate.Employee
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to create Hibernate Application - Gontu Series

    gontu.org | 3 months ago
    org.hibernate.MappingException: Unknown entity: com.gontuseries.hibernate.Employee
  6. 0

    Working with Hibernate Session - Page 8

    codejava.net | 1 year ago
    org.hibernate.MappingException: Unknown entity: com.mycompany.Contact at .... org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:58)

    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.rustedbrain.model.staff.Manager

      at org.hibernate.internal.SessionFactoryImpl.getEntityPersister()
    2. Hibernate
      SessionImpl.persist
      1. org.hibernate.internal.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:776)
      2. org.hibernate.internal.SessionImpl.getEntityPersister(SessionImpl.java:1542)
      3. org.hibernate.engine.internal.ForeignKeys.isTransient(ForeignKeys.java:225)
      4. org.hibernate.event.internal.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:499)
      5. org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:99)
      6. org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:58)
      7. org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:778)
      8. org.hibernate.internal.SessionImpl.persist(SessionImpl.java:751)
      9. org.hibernate.internal.SessionImpl.persist(SessionImpl.java:756)
      9 frames
    3. com.rustedbrain.controller
      DatabaseMappingTest.managerMappingTest
      1. com.rustedbrain.controller.utils.DatabaseMappingTest.managerMappingTest(DatabaseMappingTest.java:37)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    5. JUnit
      JUnitCore.run
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      6. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      7. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      8. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      9. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      10. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      11. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      12. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      13. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      14. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      15. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      16. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      17. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      18. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      18 frames
    6. IntelliJ junit4 module
      JUnit4IdeaTestRunner.startRunnerWithArgs
      1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
      2. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
      2 frames
    7. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
      2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
      2 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    9. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
      1 frame