OpenJPAEntityManager pm =
(OpenJPAEntityManager) currentEntityManager();
startTx(pm);
BaseEntity be = (BaseEntity) newInstance(pm, BaseEntity.class);
be.setShortField((short) 0);
pm.persist(be);
be = (BaseEntity) newInstance(pm, BaseEntity.class);
be.setShortField((short) 1);
pm.persist(be);
DerivedEntity de = (DerivedEntity) newInstance(pm, DerivedEntity.class);
de.setShortField((short) 2);
de.setOneToOne((BasicSubclassInstance) newInstance(pm,