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

Version is not incremented when a bidirectional one-to-one association changes

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects versions: 4.2.9, 4.3.1
    • Fix versions: None
    • Components: 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

      I have an entity with a version (optimistic locking) property. This entity has an one-to-one association where the foreign key is stored on the other side of the association (@OneToOne(mappedBy=...)). When this assoication is changed, the version is not incremented at the end of a transaction.

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: