I have made a JDO layer for OJB that runs the tutorial application using only the JDO API. And I've found that the OJB PersistenceBroker (not odmg) is almost dead on to the JDO spec at least for the basics.
For example in UCEditProduct (commented lines were from original).
broker is created earlier and is a PersistenceManager as in JDO spec.
broker.makePersistent(toBeEdited);
Transaction tx = null;
// 3. open transaction
tx = broker.currentTransaction();
tx.begin();
// 6. now ask broker to store the edited object
//broker.store(toBeEdited);
// 7. commit transaction
//broker.commitTransaction();
tx.commit();
Travis
|