pojo.setEmbedded(embedded);
commitTxn();
}
public void testEmbeddingPC() throws EntityNotFoundException {
HasEmbeddedPc parent = new HasEmbeddedPc();
HasKeyPkJDO embedded = new HasKeyPkJDO();
embedded.setKey(KeyFactory.createKey("blar", 43L));
parent.setEmbedded(embedded);
beginTxn();
pm.makePersistent(parent);
commitTxn();
Entity e = ds.get(parent.getKey());
assertTrue(e.hasProperty("key"));
}