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

ValidityAuditStrategy not audit properly nested collection with nulls

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.2.4
    • Fix Version/s: 5.2.5, 5.1.8
    • Component/s: hibernate-envers
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true

      Description

      Problem locate in ValidityAuditStrategy:272 -> here generates predicate that comparing fields with null using "=" sign, but insted must use "is null"
      so it cannot set REVEND field
      More over i think that checking all fields is not needed, maybe we just can find by primary key(REV, REVTYPE, PRODUCT_ID, ORDER_COL) record where revend is null and set it?

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: