ds.get(KeyFactory.stringToKey(parent.getId()));
}
public void testOneToOnePersistCascadePersist() throws EntityNotFoundException {
HasOneToOnesWithDifferentCascadesJPA parent = new HasOneToOnesWithDifferentCascadesJPA();
HasStringAncestorKeyPkJPA child = new HasStringAncestorKeyPkJPA();
parent.setCascadePersistChild(child);
beginTxn();
em.persist(parent);
assertEquals(parent.getId(), child.getAncestorKey());
commitTxn();
Entity childEntity = ds.get(child.getKey());
assertKeyParentEquals(parent.getId(), childEntity, childEntity.getKey());
}