HibernateTemplate « Load « JPA Q&A





2. Lazy Loading: OSiVFilter compatible with HibernateTemplate?    forum.hibernate.org

Hi, I am using the OpenSessionInViewFilter to implement the session-per-request pattern, so that I can lazily load collections, but it is giving an error consistently: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.domain.Environment.applications - no session or session was closed My DAOs use Spring's HibernateTemplate. Does this close the session after being called? My DAO method being called is: ...