assertEquals(new Long(-100), pc2.getPK());
endEm(pm);
}
public void testInheritance() {
SequenceAssigned2 pc = new SequenceAssigned2();
SequenceAssigned2 pc2 = new SequenceAssigned2();
OpenJPAEntityManager pm =
(OpenJPAEntityManager) currentEntityManager();
startTx(pm);
pm.persist(pc);
pm.persist(pc2);
pm.flush();
assertTrue(0 != pc.getPK());
assertTrue(0 != pc2.getPK());
assertTrue(pc.getPK() != pc2.getPK());
endTx(pm);
endEm(pm);
}