Aleksandr B. (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16043 (
https://hibernate.atlassian.net/browse/HHH-16043?atlOrigin=eyJpIjoiYjRjMD...
)
Re: Hibernate 6.x breaks collection batch fetching (
https://hibernate.atlassian.net/browse/HHH-16043?atlOrigin=eyJpIjoiYjRjMD...
)
I try my reproducer with hibernate 6.2.0.CR2 and it doesn’t work as expected (and as it
works in hibernate 5).
Hibernate eagerly fetches third level entities instead of batch queries and generates the
following query:
select e1_0.id,c1_0.parent_id,c1_0.id,c1_0.name,e1_0.name,e1_0.parent_id from Entity2 e1_0
left join Entity3 c1_0 on e1_0.id=c1_0.parent_id where e1_0.parent_id=?
(
https://hibernate.atlassian.net/browse/HHH-16043#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16043#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#100214- sha1:c40e72a )