Trouble using ScrollableResults-backed Stream as return type in Spring MVC

Cleaning up. As Marko Topolnik had said here Yes, I missed this part that the holdability setting is only applied when encountering a pre-existing session. This means that my “idea” how it could be done is already the way it is done. It also means that my comment about failures doesn’t apply: you either want … Read more

Why is Hibernate Open Session in View considered a bad practice?

Open Session In View takes a bad approach to fetching data. Instead of letting the business layer decide how it’s best to fetch all the associations that are needed by the View layer, it forces the Persistence Context to stay open so that the View layer can trigger the Proxy initialization. The OpenSessionInViewFilter calls the … Read more