Unable to fully load entity with IdClass lazily or with max fetch depth
Description
Attachments
2
Activity
Show:

Andrea Boriero August 2, 2023 at 10:05 AM
Hi @James Bodkin ,
Thanks for your PR, I have just merged it .

James Bodkin July 31, 2023 at 2:49 PM
How do I go about getting a review?

Andrea Boriero July 18, 2023 at 4:40 PM
thanks @James Bodkin

James Bodkin July 18, 2023 at 4:04 PM
I’ve raised a pull request, waiting for all the checks now

Andrea Boriero July 14, 2023 at 12:30 PM
Hi @James Bodkin ,
can you please create a Pull Request on https://github.com/hibernate/hibernate-orm/pulls ?
The PR should target main branch, 6.1 is not anymore maintained.
Fixed
Details
Details
Assignee

Reporter

Components
Sprint
None
Affects versions
Priority
Created June 7, 2023 at 1:23 PM
Updated August 31, 2023 at 5:28 PM
Resolved August 2, 2023 at 10:05 AM
I’m trying to fetch entities from the database that have hierarchical composite identifiers and the relationship between entities is lazy loaded. Additionally I’m repeating the same fetch with lazily loaded entities and the max fetch depth configured. In both of my tests, I’m seeing issues with Hibernate fetching the data from the database.
I’ve attached a patch file containing the unit tests and one small fix that I identified. The are a couple of errors remaining but I’m not familiar enough with Hibernate to resolve them.