You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Chris Rossi <ro...@webslingerZ.com> on 2003/01/14 20:32:53 UTC
ODMG problem with 0.9.8
Hello, I am in the middle of upgrading from OJB 0.9.7 to 0.9.8. I am
using the ODMG interface. What I've found is that the method I was
using to store objects no longer works. The following test method works
with 0.9.7 but not with 0.9.8:
public void dumbStoreTest() {
try {
org.odmg.Transaction tx = odmg.newTransaction();
tx.begin();
@package@.test.storage.Club club = new
@package@.test.storage.ClubImpl();
club.setName( "Howard" );
club.setLabel( "Mr. Howard" );
tx.lock( club, org.odmg.Transaction.WRITE );
tx.commit( );
System.err.println( "club id: " + club.getId() );
} catch( Exception e ) {
e.printStackTrace();
System.exit(1);
}
}
An exception is not thrown. The commit() just quietly does nothing.
Any ideas?
chris rossi