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

  1. 0

    trying to understand how @JoinTable and @JoinColumn works

    Stack Overflow | 4 months ago | Yooga TweentyThree
    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])
  2. 0

    org.hibernate.MappingException: Foreign key must have same number of columns as the referenced primary

    Stack Overflow | 2 years ago | Arthur Khusntudinov
    org.hibernate.MappingException: 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])
  3. 0

    Hibernate Community • View topic - how to map interfaces/abstract classes with annotations?

    hibernate.org | 8 months ago
    org.hibernate.MappingException: Foreign key (FKA62B616067C4D314:_GROUP [parent_type,parent_id])) must have same number of columns as the referenced primary key (_GROUP [id])
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Definition issue JPA with 3 tables and composite primary keys

    Stack Overflow | 1 year ago | RookieGuy
    org.hibernate.MappingException: Foreign key (FK_otariwhls1krq0bo780jtvbqn:region [country_id])) must have same number of columns as the referenced primary key (country [id,continent_id])
  6. 0

    Hibernate mapping - mismatch between columns

    Stack Overflow | 1 year ago | Pesho
    org.hibernate.MappingException: Foreign key (FK6ysnihr27dq6030taryppmjw3:CABLE [BOARD_1_ID])) must have same number of columns as the referenced primary key (Board [JOINT_ID,NAIL_INDEX])

    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 (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()
    2. Hibernate
      ForeignKey.alignColumns
      1. org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:148)
      2. org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:130)
      2 frames