Hi.
Actually, I don't know if this question belongs to ORM forum or Application framework forum, but I will post it here, and our moderators can move it.
My application uses
Struts, Spring and Hibernate and I mapped the relationships as lazy with batch fetch attribute.
I'm using Spring's support for Hibernate (HibernateDaoSupport) and you know, getHibernateTemplate and Spring's declerative transaction management.
Well, my Struts action gets the specified object using Hibernate and then set that object is request scope and forwards the request to a
JSP page for displaying stuffs.
As you might have realised, I got LazyInitializationException because there is no opened Hibernate Session.
One solution to this problem is to fetch the collection eagrly but I want to fetch it lazly.
Is it possible to use HibernateUtil class (from CeaverEmptor application) with Spring's support class ?
Any ideas ?