Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNzQwNjA4MDkz...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-14124?atlOrigin=eyJpIjoiNzQwNj...
) HHH-14124 (
https://hibernate.atlassian.net/browse/HHH-14124?atlOrigin=eyJpIjoiNzQwNj...
) Entity graph (fetch graph) is incorrectly applied to query results beyond the first one
(
https://hibernate.atlassian.net/browse/HHH-14124?atlOrigin=eyJpIjoiNzQwNj...
)
Issue Type: Bug Affects Versions: 5.4.19 Assignee: Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Components: hibernate-core Created: 29/Jul/2020 02:45 AM Fix Versions: 5.4-backlog
Priority: Major Reporter: Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
When I apply a fetch graph to a query, it is correctly applied to the first result: eager
associations that are not mentioned in the fetch graph are overridden and made lazy.
However, this is not true for results beyond the first one (index 1, 2, etc.): for those
results, eager associations are loaded eagerly, even if they are not mentioned in the
fetch graph.
This used to work in 5.4.18.Final.
PR coming, with a test case and hopefully a fix.
(
https://hibernate.atlassian.net/browse/HHH-14124#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-14124#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#100140- sha1:42b370d )