logo

Spring web app tutorial 15: Hibernate Lazy Initialization Exception

How to resolve LazyInitializationException using OpenEntityManagerInViewFilter / OpenSessionInViewFilter.

How to resolve LazyInitializationException using OpenEntityManagerInViewFilter / OpenSessionInViewFilter?

You get Lazy Initialization Exception when you access LAZY relationship outside transaction in Hibernate (JPA) - also known as Hibernate Lazy Loading.


comments powered by Disqus

rss

Free online Java web application examples

Want to develop whole web applications which use database, security and more? See my github account, where are lot's of example projects:
github

Search