org.hibernate.MappingException: Association references unmapped class: pendragon.sin.modelo.OperantesOT

openxava | yerikab | 1 decade ago
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Problemas al pasar OX121 a OX202

    openxava | 1 decade ago | yerikab
    org.hibernate.MappingException: Association references unmapped class: pendragon.sin.modelo.OperantesOT
  2. 0

    Diseño maestro-detalle y PK's múltiples

    openxava | 1 decade ago | xscorp
    org.hibernate.MappingException: Foreign key (FK5E5A9A65B1D99063:domicilio\_empleado \[empleado,licencia\])) must have same number of columns as the referenced
  3. 0

    Unable to instantiate custom type error in Hibernate mapping Enum mapping

    Stack Overflow | 4 years ago | Johnny
    org.hibernate.MappingException: Unable to instantiate custom type: org.hibernate.type.EnumType
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate mapping. Table related with other two

    Stack Overflow | 2 years ago | Rob
    org.hibernate.MappingException: An association from the table A refers to an unmapped class: Shortcut
  6. 0

    To reproduce this issue you need to: a) Load some hbm files using the AnnotationConfiguration b) Use a subclass reference referring to a class in a separate file via the "extends" attribute in your hbm files What happens is that you will get an exception from the buildSessionFactory call on AnnotationConfiguration similar to the following: org.hibernate.MappingException: Following superclasses referenced in extends not found: org.gs1.v202.gdsn.RegistryPartyDataDumpType at org.hibernate.cfg.Configuration.processExtendsQueue( at org.hibernate.cfg.Configuration.secondPassCompile( at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile( at org.hibernate.cfg.Configuration.buildSessionFactory( A simple workaround is to use the base Configuration class rather than the AnnotationConfiguration. However, this is not practical if you need to load a mix of existing hbm files as well as new classes that use annotations. The reason that this occurs is that the AnnotationConfiguration class overrides the add method of Configuration, storing all of the hbm files in a Map for later processing. This works fine for regular class files; however, it is not compatible with the recursive hbm file processing performed by processExtendsQueue. I've attached a fix for this issue that disables the delayed hbm processing before processing of the extends queue begins. This modification fixes this issue in the unit tests of the application I am working on. Please see the attached java file that includes the integrated fix built off the latest CVS version, as well as the unified diff I created via CVS. I would appreciate it if this fix could be rolled into the upcoming 3.1beta7, and would be happy to help out with whatever documentation or unit tests are needed for final integration. Cheers, --Steve

    Hibernate JIRA | 1 decade ago | Stephen Chin
    org.hibernate.MappingException: Following superclasses referenced in extends not found: org.gs1.v202.gdsn.RegistryPartyDataDumpType
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

    Association references unmapped class: pendragon.sin.modelo.OperantesOT

    at org.hibernate.cfg.HbmBinder.bindCollectionSecondPass()
  2. Hibernate
    1. org.hibernate.cfg.HbmBinder.bindCollectionSecondPass(
    2. org.hibernate.cfg.HbmBinder$CollectionSecondPass.secondPass(
    3. org.hibernate.cfg.CollectionSecondPass.doSecondPass(
    4. org.hibernate.cfg.Configuration.secondPassCompile(
    5. org.hibernate.cfg.Configuration.buildSessionFactory(
    5 frames
  3. org.openxava.hibernate
    1. org.openxava.hibernate.XHibernate.createSessionFactory(
    2. org.openxava.hibernate.XHibernate.getSessionFactory(
    3. org.openxava.hibernate.XHibernate.openSession(
    4. org.openxava.hibernate.XHibernate.getSession(
    4 frames
  4. org.openxava.model
    1. org.openxava.model.impl.HibernatePersistenceProvider.find(
    2. org.openxava.model.impl.BasePOJOPersistenceProvider.find(
    3. org.openxava.model.impl.MapFacadeBean.findEntity(
    4. org.openxava.model.impl.MapFacadeBean.findEntity(
    5. org.openxava.model.impl.MapFacadeBean.getValuesImpl(
    6. org.openxava.model.impl.MapFacadeBean.getValues(
    7. org.openxava.model.MapFacade.getValues(
    7 frames
  5. org.openxava.actions
    1. org.openxava.actions.SearchByViewKeyAction.execute(
    1 frame
  6. org.openxava.controller
    1. org.openxava.controller.ModuleManager.executeAction(
    2. org.openxava.controller.ModuleManager.executeAction(
    3. org.openxava.controller.ModuleManager.executeAction(
    4. org.openxava.controller.ModuleManager.executeAction(
    5. org.openxava.controller.ModuleManager.executeAction(
    6. org.openxava.controller.ModuleManager.executeAction(
    7. org.openxava.controller.ModuleManager.executeAction(
    8. org.openxava.controller.ModuleManager.executeAction(
    9. org.openxava.controller.ModuleManager.execute(
    9 frames