s_ref_3.setMainObject(obj_1);
obj_2.setSingleReference(s_ref_4);
s_ref_3.setMainObject(obj_1);
Implementation odmg = OJB.getInstance();
Database db = odmg.newDatabase();
db.open(TestHelper.DEF_DATABASE_NAME, Database.OPEN_READ_WRITE);
Transaction tx = odmg.newTransaction();
tx.begin();
db.makePersistent(s_ref_1);
db.makePersistent(s_ref_2);
db.makePersistent(s_ref_3);
db.makePersistent(s_ref_4);
db.makePersistent(obj_1);
db.makePersistent(obj_2);
tx.commit();
// try to find both objects
Criteria crit = new Criteria();
crit.addEqualTo("name", name);