ds.get(KeyFactory.stringToKey(parent.getId()));
}
public void testOneToOnePersistChildWithAncestorCascadeAll() throws EntityNotFoundException {
HasOneToOnesWithDifferentCascadesJPA parent = new HasOneToOnesWithDifferentCascadesJPA();
HasStringAncestorStringPkJPA child = new HasStringAncestorStringPkJPA();
parent.setCascadeAllChild(child);
beginTxn();
em.persist(parent);
commitTxn();
assertEquals(parent.getId(), child.getAncestorId());
Entity childEntity = ds.get(KeyFactory.stringToKey(child.getId()));
assertKeyParentEquals(parent.getId(), childEntity, childEntity.getKey());
ds.get(KeyFactory.stringToKey(parent.getId()));
}