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:

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

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

Priority

Major
Configure