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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via openxava by xscorp
, 1 year ago
Foreign key (FK5E5A9A65B1D99063:domicilio\_empleado \[empleado,licencia\])) must have same number of columns as the referenced
via Stack Overflow by Noor
, 2 years ago
Foreign key (FK6214B38B81858749:BUSINESSUSER [BUSINESSNAME])) must have same number of columns as the referenced primary key (BUSINESSUSER [BUSINESSNAME,idx])
via Coderanch by Yaki Kumar, 11 months ago
Foreign key (FKC3DDB2345834AA5C:PROJECT_INFO [PROJECT_REF_NAME])) must have same number of columns as the referenced primary key (PROJECTS [PROJECT_NAME,START_DATE])
via Coderanch by Jenny George, 11 months ago
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])
via Coderanch by Arun Giridharan, 1 year ago
Foreign key (FK250691B08CBB085E:STUDENT_ADDRESS [ADDRESS_ID])) must have same number of columns as the referenced primary key (STUDENT_ADDRESS [STUDENT_ID,ADDRESS_ID])
via coderanch.com by Unknown author, 1 year ago
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])
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(ForeignKey.java:90)
at org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:73)
at org.hibernate.cfg.Configuration.secondPassCompileForeignKeys(Configuration.java:1145)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1052)
at org.openxava.hibernate.XHibernate.createSessionFactory(XHibernate.java:207)
at org.openxava.hibernate.XHibernate.getSessionFactory(XHibernate.java:217)
at org.openxava.hibernate.XHibernate.openSession(XHibernate.java:76)
at org.openxava.hibernate.XHibernate.getSession(XHibernate.java:58)
at org.openxava.model.impl.HibernatePersistenceProvider.find(HibernatePersistenceProvider.java:20)
at org.openxava.model.impl.BasePOJOPersistenceProvider.find(BasePOJOPersistenceProvider.java:79)
at org.openxava.model.impl.MapFacadeBean.findEntity(MapFacadeBean.java:1266)
at org.openxava.model.impl.MapFacadeBean.findEntity(MapFacadeBean.java:1407)
at org.openxava.model.impl.MapFacadeBean.findAssociatedEntity(MapFacadeBean.java:995)
at org.openxava.model.impl.MapFacadeBean.mapToReferencedObject(MapFacadeBean.java:974)
at org.openxava.model.impl.MapFacadeBean.convertSubmapsInObject(MapFacadeBean.java:1382)
at org.openxava.model.impl.MapFacadeBean.create(MapFacadeBean.java:626)
at org.openxava.model.impl.MapFacadeBean.create(MapFacadeBean.java:38)
at org.openxava.model.MapFacade.create(MapFacade.java:73)
at org.openxava.actions.SaveAction.execute(SaveAction.java:24)
at org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:309)
at org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:238)
at org.openxava.controller.ModuleManager.execute(ModuleManager.java:205)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
193 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
37 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.