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

IncrediblySillyJpaMapsIdMappedIdentifierValueMarshaller attempts to persist detached entities that are part of a composite Primary key for another entity

    Details

    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

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

      Description

      I have an entity (BookVersion) with a composite ID consisting of many-to-one links to other entities in the system (BookID,Library). The (BookVersion) entity has an IdClass (BookVersionPK) which maps these to Long values.

      When I call merge on a detached instance of the entity (BookVersion) IncrediblySillyJpaMapsIdMappedIdentifierValueMarshaller attempts to find the ID entities (BookID,Library) in the current context these fail which results in "Performing implicit derived identity cascade" which attempts to persist the detached ID entities (BookID,Library)

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: