Why is hibernate open session in view considered a bad practice?
- by HeDinges
And what kind of alternative strategies do you use for avoiding LazyLoadExceptions?
I do understand that open session in view has issues with:
Layered applications running in different jvm's
Transactions are committed only at the end, and most probably you would like the results before.
But, if you know that your application is running on a single vm, why not ease your pain by using an open session in view strategy?