org.hibernate.MappingException

Foreign key (FK3cspe1b06hmsik5l8y1i11xmd:employee [employies_employee_id])) must have same number of columns as the referenced primary key (employee [fk_department_id,employies_employee_id])

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web43

Stack trace

  • org.hibernate.MappingException: Foreign key (FK3cspe1b06hmsik5l8y1i11xmd:employee [employies_employee_id])) must have same number of columns as the referenced primary key (employee [fk_department_id,employies_employee_id]) at org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:148) at org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:130)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

PilleoPilleo
Once,
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,