assertNull(pojo.getEmbedded());
commitTxn();
}
public void testEmbeddedWithKeyPk_NotNullEmbedded() {
HasEmbeddedWithKeyPkJDO pojo = new HasEmbeddedWithKeyPkJDO();
HasKeyPkJDO embedded = new HasKeyPkJDO();
embedded.setStr("yar");
pojo.setEmbedded(embedded);
beginTxn();
pm.makePersistent(pojo);
commitTxn();
pm.evictAll();
pmf.getDataStoreCache().evictAll();
beginTxn();
pojo = pm.getObjectById(HasEmbeddedWithKeyPkJDO.class, pojo.getId());
assertNotNull(pojo.getEmbedded());
assertEquals("yar", pojo.getEmbedded().getStr());
commitTxn();
}