ODMGGourmet gourmet = (ODMGGourmet)result.get(0);
/*
now we lock main object and add a new reference object
*/
tx.lock(gourmet, Transaction.WRITE);
gourmet.addFavoriteFood(goldfish);
tx.commit();
query = odmg.newOQLQuery();
query.create("select fishs from " + Fish.class.getName() +