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.

Vlad Mihalcea September 18, 2017 at 12:41 PM

I know realized that comment:

which you omitted in the Jira issue.

Michele Mariotti September 18, 2017 at 12:17 PM

another test on Hibernate Core is already present.

Vlad Mihalcea September 18, 2017 at 12:01 PM

I added a test on Hibernate Core to prove that the issue does not replicate.

Out of Date

Details

Assignee

Reporter

Labels

Affects versions

Priority

Created September 30, 2016 at 8:59 AM
Updated February 14, 2025 at 1:37 PM
Resolved February 14, 2025 at 1:37 PM