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

Use of enhancer dirty tracking causes collections in entities to not be persisted

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.5
    • Fix Version/s: 5.2.6, 5.1.5
    • Component/s: bytecode-enhancement
    • Labels:
      None

      Description

      The enhancer isn't dirty tracking collections.

      For example, if there is a user that has a Set<Group> groups fields, then:

      user.groups = new HashSet<Group>();
      

      does not result in the dirty tracker having the "groups" field changed.

      Here's a pull request with a test demonstrating the problem:
      https://github.com/hibernate/hibernate-orm/pull/1659

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: