org.hibernate.MappingException: Foreign key (FK5E5A9A65B1D99063:domicilio\_empleado \[empleado,licencia\])) must have same number of columns as the referenced

openxava | xscorp | 1 decade ago
  1. 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
  2. 0

    Problemas al pasar OX121 a OX202

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

    Problem with Hibernate composite key mapping (Object Relational Mapping forum at Coderanch)

    coderanch.com | 9 months ago
    org.hibernate.MappingException: Foreign key (FKBB3E234E2C0B82A3 O FFICER_AGENCY [INT_OFCR2AGCY_ID])) must have same number of columns as the referenced primary key (AGENCY [AGENCY_CODE,SUB_AGENCY_CODE])
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate mapping. Table related with other two

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

    BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/.../DataConfiguration.class]:

    Stack Overflow | 2 years ago | AixNPanes
    javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
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

    Foreign key (FK5E5A9A65B1D99063:domicilio\_empleado \[empleado,licencia\])) must have same number of columns as the referenced

    at org.hibernate.mapping.ForeignKey.alignColumns()
  2. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:90)
    2. org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:73)
    3. org.hibernate.cfg.Configuration.secondPassCompileForeignKeys(Configuration.java:1145)
    4. org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1052)
    5. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1168)
    5 frames
  3. org.openxava.hibernate
    XHibernate.getSession
    1. org.openxava.hibernate.XHibernate.createSessionFactory(XHibernate.java:207)
    2. org.openxava.hibernate.XHibernate.getSessionFactory(XHibernate.java:217)
    3. org.openxava.hibernate.XHibernate.openSession(XHibernate.java:76)
    4. org.openxava.hibernate.XHibernate.getSession(XHibernate.java:58)
    4 frames
  4. org.openxava.model
    MapFacade.create
    1. org.openxava.model.impl.HibernatePersistenceProvider.find(HibernatePersistenceProvider.java:20)
    2. org.openxava.model.impl.BasePOJOPersistenceProvider.find(BasePOJOPersistenceProvider.java:79)
    3. org.openxava.model.impl.MapFacadeBean.findEntity(MapFacadeBean.java:1266)
    4. org.openxava.model.impl.MapFacadeBean.findEntity(MapFacadeBean.java:1407)
    5. org.openxava.model.impl.MapFacadeBean.findAssociatedEntity(MapFacadeBean.java:995)
    6. org.openxava.model.impl.MapFacadeBean.mapToReferencedObject(MapFacadeBean.java:974)
    7. org.openxava.model.impl.MapFacadeBean.convertSubmapsInObject(MapFacadeBean.java:1382)
    8. org.openxava.model.impl.MapFacadeBean.create(MapFacadeBean.java:626)
    9. org.openxava.model.impl.MapFacadeBean.create(MapFacadeBean.java:38)
    10. org.openxava.model.MapFacade.create(MapFacade.java:73)
    10 frames
  5. org.openxava.actions
    SaveAction.execute
    1. org.openxava.actions.SaveAction.execute(SaveAction.java:24)
    1 frame
  6. org.openxava.controller
    ModuleManager.execute
    1. org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:309)
    2. org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:238)
    3. org.openxava.controller.ModuleManager.execute(ModuleManager.java:205)
    3 frames