1.

What Are The Ways To Avoid Lazyinitializationexception ?

Answer»
  1. Set lazy=false in the HIBERNATE config file.
  2.  Set @Basic(fetch=FetchType.EAGER) at the mapping.
  3. MAKE SURE that we are ACCESSING the dependent objects before closing the session.
  4. Using Fetch Join in HQL.



Discussion

No Comment Found