Marcel (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=712020%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZDgwOGQ0ZjQz...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16905?atlOrigin=eyJpIjoiZDgwOG...
) HHH-16905 (
https://hibernate.atlassian.net/browse/HHH-16905?atlOrigin=eyJpIjoiZDgwOG...
) Since 6.2.6 criteria query with nested fetches do not fetch some entities any more (
https://hibernate.atlassian.net/browse/HHH-16905?atlOrigin=eyJpIjoiZDgwOG...
)
Issue Type: Bug Affects Versions: 6.2.6 Assignee: Unassigned Components: query-criteria
Created: 06/Jul/2023 06:34 AM Priority: Major Reporter: Marcel (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=712020%...
)
We have one entity with some nested entities. We fetch all of them via criteria api within
one transaction. After reading, we process these entities outside the trancation. Since
6.2.6 the resulting select does not contain all requested joins, an the relations are not
fetched. So we run into an “no session” error. I will provide an testcase for reproducing
this issue.
(
https://hibernate.atlassian.net/browse/HHH-16905#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16905#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#100230- sha1:e339e49 )