in my code, i'm doing the following. Im extending HibernateDaoSupport
It appears that my Session is being closed after the find query runs? How do I do this kind of initialization with Spring?Code:Person p = null; List list = getHibernateTemplate().find(PERSON_WITH_ADDRESS-PHONE, person.getPersonOid()); if (list.size() > 0) { System.out.println("Im here"); p = (Person) list.get(0); Hibernate.initialize(p.getAddresses()); Hibernate.initializep.getPhones()); } return p;


Reply With Quote