@OneToMany with FetchType.EAGER doesn't work when using getResultStream

Description

I am using @OneToMany relationship with FetchType.EAGER and getting result from a query as a stream. Then fetching eager collection after closing EntityManager, e.g.

It fails with

It is broken since 5.4.4. Suspect is the code change in ScrollableResultsImpl class (rev cc01f2561dbca95bd58048f85e283ba1719ee588)

Environment

None

Assignee

Unassigned

Reporter

Arturas Gudkovas

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.4.3

Components

Affects versions

Priority

Major
Configure