I have one-to-many property for my entity and i want to make this lazy, so no eager fetching.My application is built on spring2.5 , hibernate 3 and java 1.4.
When I call getA which is a set with one-to-many and lazy , I get org.hibernate.LazyInitializationException
failed to lazily initialize a collection of role: xjh.ki....., no session or session was closed . Please hlep me resolve this .I read that hibernate does not support lazy initilization outside the session. So in my case how can go with session ?
|