I'm having issues with getting a property of an object throwing a LIE.
pojo:
Code:
public class EventTypeVO {
private String description;
public String getDescription()...
public void setDescription()..
}
I first call a:
Code:
session.createQuery("from EventTypeVO").list();
which returns a list. I'm able to iterate through this list on my jsp and call:
Code:
eventTypeVO.getDescription();
without any problems. The descriptions display fine. When an eventType is selected, the call goes to a load with the eventTypeId..
Code:
session.load(EventTypeVO.class, eventTypeId);
When I try and access the description (either in the biz or jsp) I get this error:
Code:
LazyInitializationException: could not initialize proxy - the owning Session was closed
EventTypeVO$$EnhancerByCGLIB$$a50e6959.getDescription(<generated>)
I'm lost as to why accessing a property would throw this.
Any ideas?