In this section, you will find the reason of lazyinitializationexception in hibernate.
The org.hibernate.LazyInitializationException is the sub class of the org.hibernate.HibernateException.
The lazyinitializationexception exception occurs when you try to access unfetched data or non-initialized association after the session is closed. For example, if session is closed and uninitialized collection is accessed, lazyinitializationexception occurs .
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial
Discuss: Hibernate lazyinitializationexception
Post your Comment