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.