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

Merging CollectionChangeWorkUnit with ModWorkUnit ended with incorrect values of modified flags

    Details

    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

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

      Description

      We have @OneToMany biderectional association (with mapped by):
      Ticket -> comments (@OneToMany)
      Comment -> ticket (@ManyToOne)

      Follow steps:

      1. Insert comment -> this creates CollectionChangeWorkUnit on ticket
      2. Update ticket -> this creates ModWorkUnit on ticket
      3. AuditProcess calls merge -> second ModWorkUnit returns

      Created ModWorkUnit should have comments_AUD = true, but the value is false.

      I suppose the same issue happens with AddWorkUnit.

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: