Hi
I'm new to hibernate, and I used it in my project but, now I have an exception:
org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:53) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:80) at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:133) at com.raj.shopping.domain.SecondryCategory$$EnhancerByCGLIB$$87dcf58d.getMainCategory(<generated>)
I have tow class named SecondryCategory and MainCategory, I have an instance of MainCategory in SecondryCategory and in my code I need to get it to use. I guess it should be related to fetching objects in 1 more deep but I don't know how to fix it.
please someone help me.
|