org.hibernate.MappingException: Unknown entity: com.mycompany.myproduct.data.models.Custtable

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    spring boot - how to avoid org.hibernate.MappingException Unknown entity?

    Stack Overflow | 8 months ago | Eugene Goldberg
    org.hibernate.MappingException: Unknown entity: com.mycompany.myproduct.data.models.Custtable

    Root Cause Analysis

    1. org.hibernate.MappingException

      Unknown entity: com.mycompany.myproduct.data.models.Custtable

      at org.hibernate.internal.SessionFactoryImpl.getEntityPersister()
    2. Hibernate
      SessionImpl.locateEntityPersister
      1. org.hibernate.internal.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:1096)
      2. org.hibernate.internal.SessionImpl.locateEntityPersister(SessionImpl.java:2565)
      2 frames