Why is hibernate open session in view considered a bad practice?
Posted
by HeDinges
on Stack Overflow
See other posts from Stack Overflow
or by HeDinges
Published on 2009-07-09T11:49:45Z
Indexed on
2010/04/04
1:13 UTC
Read the original article
Hit count: 310
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?
© Stack Overflow or respective owner