Detach of entity with lazy-loaded collection and orphan removal leads to exception during flush of session

Description

When a byte-code enhanced entity that contains a lazy-loaded collection as a one-to-many association to a child entity with orphan removal is detached, a subsequent flush of the session throws an assertion failure:

Environment

None

Assignee

Unassigned

Reporter

Jonathan Bregler

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure