public void testUpdate ()
{
EntityManager pm = currentEntityManager();
startTx(pm);
CustomMappingPC pc = pm.find(CustomMappingPC.class, _oid);
pc.setName ("name2");
pc.setFemale (false);
endTx(pm);
endEm(pm);
pm = currentEntityManager();
startTx(pm);
pc = pm.find(CustomMappingPC.class, _oid);
assertEquals ("name2", pc.getName ());
assertTrue (!pc.isFemale ());
endTx(pm);
endEm(pm);
}