After setting up all my hibernate mappings I can't get rid of the following exception:
ERROR [LazyInitializationException] could not initialize proxy - the owning Session was closed
org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed
The application is able to fetch the records from the database but as soon as I try to iterate over the PersistentSet it throws the exception stated above.
I read on the Internet that I should use org.springframework.aop.framework.ProxyFactoryBean which takes care of HibernateSession handling.
My *.hbm.xml files do not contain lazy="true" tags. Can someone help me out?
Your help will be greatly appreciated!