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

Activity

Show:
Gail Badner
March 12, 2019, 5:35 PM

Fixed in master branch.

Gail Badner
March 29, 2019, 5:01 AM

Fixed in 5.3 branch as well.

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