We're updating the issue view to help you get more done. 

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

Description

The enhancer isn't dirty tracking collections.

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

1 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

Environment

None

Status

Assignee

Luis Barreiro

Reporter

Craig Andrews

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Affects versions

5.2.5

Priority

Major