}
public void testAppId() {
EntityManager em = currentEntityManager();
startTx(em);
AImplB pc = new AImplB("foo", 1, "pk");
em.persist(pc);
AImplB.Idkey oid = new AImplB.Idkey();
oid.pk1 = 1;
oid.pk2 = "pk";
endTx(em);
endEm(em);
em = currentEntityManager();
pc = (AImplB) em.find(AImplB.class, oid);
assertEquals("foo", pc.getName());
endEm(em);
em = currentEntityManager();
pc = (AImplB) em.find(AImplB.class, oid.toString());
assertEquals("foo", pc.getName());
endEm(em);
}