I have this exception when I want to retrive an object that is a foreign key in some other object.Code:org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:53) org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:80) org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:134)
Object "milestone" has a property "personFk" (which is instance of Person class and is described in this way
What can be the reason of this exception? I use hibernate 3 and MySql 5...Code:/** * * @hibernate.many-to-one column = "person_fk" * class = "business.model.Person" * not-null = "false" */


Reply With Quote
