(OpenJPAEntityManagerFactory) getEmf(props);
OpenJPAEntityManager pm =
(OpenJPAEntityManager) factory.createEntityManager();
startTx(pm);
DetachSMPC pc = new DetachSMPC();
pc.setIntField(1);
DetachSMPC rel = new DetachSMPC();
rel.setIntField(2);
pc.getRelSet().add(rel);
pc.getStringIntMap().put("a", new Integer(99));
pm.persist(pc);
endTx(pm);
Object pcoid = pm.getObjectId(pc);