A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance with hibernate-enhance-maven-plugin

Description

I've created sample application with three entities.

Database initially contains one record in Parent table

Then in Main class I create Parent object with new name and existing id and then I merge parent object

When I run this appliaction without hibernate-enhance-maven-plugin it works fine.

But when I run this appliaction with hibernate-enhance-maven-plugin:

It throws exception:

Environment

None

Assignee

Unassigned

Reporter

Andrzej

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure