t = s.beginTransaction();
List list = s.find("from Master m left join fetch m.details");
Master m = (Master) list.get(0);
assertTrue( Hibernate.isInitialized( m.getDetails() ) );
assertTrue( m.getDetails().size()==2 );
list = s.find("from Detail d inner join fetch d.master");
Detail dt = (Detail) list.get(0);
Serializable dtid = s.getIdentifier(dt);
assertTrue( dt.getMaster()==m );
//assertTrue(m.getAllDetails().size()==2);