if(ojbSkipKnownIssueProblem()) return;
Transaction tx = odmg.newTransaction();
tx.begin();
ProductGroup pg1 = new ProductGroup();
pg1.setName("BatchModeTest ProductGroup #1");
database.makePersistent(pg1);
tx.checkpoint();
Article a1 = Article.createInstance();
a1.setArticleName("BatchModeTest Article #1");
a1.setProductGroup(pg1);
pg1.addArticle(a1);
database.makePersistent(a1);
ProductGroup pg2 = new ProductGroup();
pg2.setName("BatchModeTest ProductGroup #2");
database.makePersistent(pg2);
Article a2 = Article.createInstance();
a2.setArticleName("BatchModeTest Article #2");
a2.setProductGroup(pg2);
pg2.addArticle(a2);
tx.checkpoint();
database.deletePersistent(a1);