Uploaded image for project: 'Hibernate ORM'
  1. HHH-7915

Inherited foreign keys which reference a non primary key column incorrectly reference the primary key column

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.5.6
    • Fix Version/s: 4.3.0.Beta4, 4.2.5
    • Component/s: hibernate-core
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      If a table inherits foreign keys which reference a non primary key column then the generated foreign incorrectly references the primary key column.

      This is because the referenced columns from the included table are not passed to the call to create the foreign key in the DenormailzedTable class.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: