Joined: Tue Apr 07, 2009 8:48 am Posts: 14 Location: Kerala,India
|
Hi guys,
I am having a problem with the lazy loading of Hibernate. I have set lazy to default value ie: lazy="true" in my HBM files. So whenever i try to retrieve data from the child table, its throwing Lazy Initailization Exception could not initialize proxy - no Session. I tried to load the parent class and initialize the parent object, but the exception remains the same.
My application has Spring so I am using HibernateTemplate. I cannot set LAZY="false" as it leads to poor perfomance and speed.
Please help me in this matter.
Thanks in advance.
_________________ Its fun to LEARN guru_G
|
|