org.hibernate.MappingException: Unknown entity:

Coderanch | manu chaox | 6 years ago
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    spring + hibernate

    Coderanch | 6 years ago | manu chaox
    org.hibernate.MappingException: Unknown entity:
  2. 0

    Hibernate Eclipse Unknown Entity (using javax.persistence.Entity)

    Stack Overflow | 4 years ago | Mudassir Shahzad
    org.hibernate.MappingException: Unknown entity: com.mywebservice.domain.Account
  3. 0

    org.hibernate.MappingException: Unknown entity error as hibernate.cfg.xml does not get loaded

    Stack Overflow | 4 years ago | J888
    org.hibernate.MappingException: Unknown entity:
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [HHH-4321] Getting org.hibernate.MappingException for basic Hibernate annotations application - Hibernate JIRA | 1 year ago
    org.hibernate.MappingException: Unknown entity: com.flylite.ticketing.model.FlightMaster
  6. 0

    Hi, I'm trying Hibernate annotations program along with a business object having 4 attributes. I referred one of the online tutorial and created BO class with annotations,, hibernate.cfg.xml, and .java with main method in it for execution. Everything compiled successfully in eclipse but while executing I got below mentioned exception: Exception in thread "main" org.hibernate.MappingException: Unknown entity: com.flylite.ticketing.model.FlightMaster at org.hibernate.impl.SessionFactoryImpl.getEntityPersister( at org.hibernate.impl.SessionImpl.getEntityPersister( at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId( at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId( at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId( at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient( at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate( at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate( at org.hibernate.impl.SessionImpl.fireSave( at at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke( at $ Source) at com.flylite.ticketing.application.TestFlightManager.main( I followed all the steps as per given in tutorial apart from @Table (name="") as we have to use appliesTo in latest version. I doubt (I may be wrong) on @Table(appliesTo="") tag, as I tried similar program couple of months back with lower version of Hibernate where tag was @Table(name=""), and it ran successfully. Please helpe me in this issue. Let me know in case I need to upload my files. Regards Mandar

    Hibernate JIRA | 9 years ago | Mandar Shukla
    org.hibernate.MappingException: Unknown entity: com.flylite.ticketing.model.FlightMaster

    1 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:

      at org.hibernate.impl.SessionFactoryImpl.getEntityPersister()
    2. Hibernate
      1. org.hibernate.impl.SessionFactoryImpl.getEntityPersister(
      2. org.hibernate.impl.SessionImpl.getEntityPersister(
      3. org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(
      4. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(
      5. org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(
      6. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(
      7. org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(
      8. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(
      9. org.hibernate.impl.SessionImpl.fireSave(
      11 frames
    3. Java RT
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(
      4. java.lang.reflect.Method.invoke(
      4 frames
    4. Hibernate
      1. org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(
      1 frame
    5. Unknown
      1. $ Source)
      1 frame
      1 frame
      1 frame