storeObjects(tx, getNewODMGZoos("testUserRollbackWithCheckpoint", 10));
// now we store objects to DB
tx.checkpoint();
storeObjects(tx, getNewProjects("testUserRollbackWithCheckpoint", 10));
//we abort tx, all actions after the last checkpoint call should be rollback
tx.abort();
odmgZoosAfter = getDBObjectCountWithNewPB(ODMGZoo.class);
projectsAfter = getDBObjectCountWithNewPB(ODMGGourmet.class);
odmgZoosAfterOQL = getDBObjectCountViaOqlQueryUseNewTransaction(odmg, ODMGZoo.class);
projectsAfterOQL = getDBObjectCountViaOqlQueryUseNewTransaction(odmg, ODMGGourmet.class);