orphanRemoval not working when other same-table-relations are initialized
Description
using these entities:
when executing:
no DELETE statement is issued.
If you don't initialize higherItemRelations then everything is working fine.
I'll produce a unit test as soon as I can.
Thanks
Attachments
1
Activity
Show:
Christian Beikov February 14, 2025 at 1:37 PM
Can’t reproduce this on ORM 6+:
Michele Mariotti September 18, 2017 at 12:50 PM
I'm sorry, but I didn't know it's related to batch fetching (I don't know Hibernate Core deeply yet). Nevertheless, the uploaded test case contains a minimal configuration where batch fetching is enabled.
using these entities:
when executing:
no DELETE statement is issued.
If you don't initialize higherItemRelations then everything is working fine.
I'll produce a unit test as soon as I can.
Thanks