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

order_inserts causing constraint violation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.11
    • Fix Version/s: 5.2.12, 5.1.12
    • Component/s: hibernate-core
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

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

      Description

      When a parent entity being referenced by 2 child entites, SQL insert statement of child entity
      gets issued first before parent entity, resulting in Referential integrity constrain violation.

      This happens when order_inserts is enabled.

      https://github.com/hibernate/hibernate-orm/commit/699b50725d1cab1378cc7617bf92920bd7888b5a#commitcomment-24363863

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: