Justin Tay (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5cb66d4...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZDcyMWYwZjhl...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16039?atlOrigin=eyJpIjoiZDcyMW...
) HHH-16039 (
https://hibernate.atlassian.net/browse/HHH-16039?atlOrigin=eyJpIjoiZDcyMW...
) Stream fails to fetch object during processing where BatchEntitySelectFetchInitializer
gets used (
https://hibernate.atlassian.net/browse/HHH-16039?atlOrigin=eyJpIjoiZDcyMW...
)
Issue Type: Bug Affects Versions: 6.1.6 Assignee: Unassigned Attachments:
hibernate-stream-issue.zip Created: 13/Jan/2023 06:26 AM Priority: Major Reporter: Justin
Tay (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5cb66d4...
)
When attempting to process a query using query.getResultStream() if the
BatchEntitySelectFetchInitializer is to be used to fetch an object, the object doesn't
get fetched and is null as it only gets fetched during endLoading which only gets called
after the stream is closed.
Test cases attached shows it worked in Hibernate ORM 5 and in ORM 6 query.getResultList()
works as endLoading gets called but in query.getResultStream() it doesn't.
(
https://hibernate.atlassian.net/browse/HHH-16039#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16039#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:b03f6a4 )