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

后端 未结 9 2081
轮回少年
轮回少年 2020-11-22 17:08

And what kind of alternative strategies do you use for avoiding LazyLoadExceptions?

I do understand that open session in view has issues with:

  • Layered
9条回答
  •  心在旅途
    2020-11-22 17:35

    I just did a post on some guidelines as to when to use open session in view in my blog. Check it out if your interested.

    http://heapdump.wordpress.com/2010/04/04/should-i-use-open-session-in-view/

提交回复
热议问题