James Bodkin (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=61f7ce4...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNzdlMWRlZjZk...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16766?atlOrigin=eyJpIjoiNzdlMW...
) HHH-16766 (
https://hibernate.atlassian.net/browse/HHH-16766?atlOrigin=eyJpIjoiNzdlMW...
) Unable to fully load entity with IdClass lazily or with max fetch depth (
https://hibernate.atlassian.net/browse/HHH-16766?atlOrigin=eyJpIjoiNzdlMW...
)
Issue Type: Bug Affects Versions: 6.2.4 Assignee: Unassigned Components: hibernate-core
Created: 07/Jun/2023 06:23 AM Environment: Hibernate 6.2.4
Eclipse Temurin JDK with Hotspot 11.0.18+10 (x64)
Windows 10 22H2
SQL Server 2019 / H2 Priority: Major Reporter: James Bodkin (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=61f7ce4...
)
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.
(
https://hibernate.atlassian.net/browse/HHH-16766#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16766#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:62413c2 )