That's exactly what happened. The object was not attached to the new session and therefore I could not traverse the relationship to Products.
Here is what I ended up doing:
In my FormController I called:
Code:
getManufacturerDao().reattachToSession(manufacturer);
manufacturer.getProducts();
In my ManufacturerDao I did:
Code:
public void reattachToSession(Tblorgbase orgbase) {
//getSessionFactory().getCurrentSession().update(orgbase);
getSessionFactory().getCurrentSession().lock(orgbase, org.hibernate.LockMode.NONE);
}
update or lock, both methods work.
Thanks for the help.