* test that we can create 2 objects that have a bidirectional association in ODMG API
*/
public void testCreateWithUpdate() throws ODMGException
{
Implementation odmg = OJB.getInstance();
Database db = odmg.newDatabase();
db.open(databaseName, Database.OPEN_READ_WRITE);
Transaction tx = odmg.newTransaction();
long currentTime = System.currentTimeMillis();
BidirectionalAssociationObjectA a = new BidirectionalAssociationObjectA();
a.setPk("A" + currentTime);
BidirectionalAssociationObjectB b = new BidirectionalAssociationObjectB();
b.setPk("B" + currentTime);
tx.begin();
db.makePersistent(a);
db.makePersistent(b);
tx.commit();
tx.begin();
tx.lock(a, Transaction.WRITE);
tx.lock(b, Transaction.WRITE);