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

Insert fails on one-to-one mapping when an intermediate embeddable type is between mappings when using ordered inserts.

    Details

    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

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

      Description

      Having an ORM with a one-to-one mapping looking like: Booking (Entity) -> IntermediateObject (Embeddable) -> Comment (Entity)
      And the resulting book table has a foreign key to the comment table.

      When trying to insert one book with no comment and another book with a comment in the same transaction a foreign key constraint violation is thrown.

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: