Constraint violation when deleting entites in bi-directional, lazy OneToMany association with bytecode enhancement

Description

Given the association below, deleting all entities on both sides of the lazy association fails with a constraint violation if (and only if) bytecode enhancement is enabled (e.g. <enableLazyInitialization>true</enableLazyInitialization> using the hibernate-enhance-maven-plugin).

Test code:

Environment

None

Status

Assignee

Gail Badner

Reporter

Stephen Fikes

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure