OpenJPAEntityManager pm1 = getEm(true, true);
OpenJPAEntityManager pm2 = getEm(true, true);
// have to load via query or extent where we're selecting the vertical
// field in the initial SELECT
OpenJPAQuery q1 = pm1.createNativeQuery("",StateImagePC2.class);
//FIXME jthomas
//q1.setOrdering("intField ascending");
StateImagePC2 pc1 = (StateImagePC2) ((Collection) q1.getCandidateCollection()).
iterator().next();
q1.closeAll();
OpenJPAQuery q2 = pm2.createNativeQuery("",StateImagePC2.class);
//FIXME jthomas
//q2.setOrdering("intField ascending");
StateImagePC2 pc2 = (StateImagePC2) ((Collection) q2.getCandidateCollection()).
iterator().next();
q2.closeAll();
pm1.getTransaction().begin();
pc1.setStringField("changed1");
pc1.setStateImage(null);