I have EntityA and EntityB. There exist the following relationships:
- One-to-one relationship from EntityA to EntityB.
- Bidirectional one-to-many relationship from EntityA to EntityB.
To remove both entities, I first clear all references, then call session.remove() on both entities. This results in this exception:
See reproduction based on template https://github.com/hibernate/hibernate-test-case-templates/tree/main/orm/hibernate-orm-6 : |