Closed as not planned
Description
Hi,
originally I raised this issue as a spring boot issue here.
However, @wilkinsona said that this is not really a spring boot issue, but a change in hibernate 6.6 (compared to 6.5).
The new behavior breaks when the JPA Repository returns a Stream that is used to stream a response to a client through a spring Controller.
This means, that the JPA Stream interface cannot be used to stream data out of the application without "aggregating up" which allocates (too much) memory in the JVM.
I want to follow @wilkinsona 's advice and open an issue here.
Please see the details in the linked issue, there is also a demo project that can be executed to show the issue.
Thank you