m = (Master) s.load(Master.class, mid);
s.connection().commit();
s.close();
m.setName("New Name");
s = openSession();
s.update(m, mid);
Iterator iter = m.getDetails().iterator();
int i=0;
while ( iter.hasNext() ) {
assertTrue( iter.next()!=null );
i++;