PersistenceManager pm = pmf.getPersistenceManager();
pm.getObjectIdClass(CompactDisc.class);
//get the sequence
Sequence s = pm.getSequence(CD_SEQ);
assertNotNull("Sequence " + CD_SEQ + " should not be null.", s);
CompactDisc cd1 = new CompactDisc();
cd1.setTitle("cd1");
CompactDisc cd2 = new CompactDisc();
cd1.setTitle("cd2");
//make persistent
pm.currentTransaction().begin();
pm.makePersistent(cd1);
pm.makePersistent(cd2);