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])

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 Stack Overflow by Yooga TweentyThree
, 1 year ago
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])
via Stack Overflow by Arthur Khusntudinov
, 1 year ago
Foreign key (FK_hksv6kkf3cysf5ug30q575tg1:framework_files [filesLocal_id])) must have same number of columns as the referenced primary key (framework_files [linkedObjectName,linkedObjectId,filesLocal_id])
via Stack Overflow by RookieGuy
, 2 years ago
Foreign key (FK_otariwhls1krq0bo780jtvbqn:region [country_id])) must have same number of columns as the referenced primary key (country [id,continent_id])
via hibernate.org by Unknown author, 1 year ago
Foreign key (FKA62B616067C4D314:_GROUP [parent_type,parent_id])) must have same number of columns as the referenced primary key (_GROUP [id])
via Coderanch by Rajesh Giriyappa, 1 year ago
Foreign key (FKC23D9BC291A06744:activity_test [batch_id])) must have same number of columns as the referenced primary key (batch [batch_id,activity_test_id])
via hibernate.org by Unknown author, 1 year ago
Foreign key (FKB307E1191A5ADD70:events [fk_report])) must have same number of columns as the referenced primary key (reports [fk_event,fk_report])
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)

Users with the same issue

Once, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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