pm.getObjectById(HasLongPrimitivePkJDO.class, KeyFactory.keyToString(e.getKey()));
commitTxn();
}
public void testStringUUIDPk() throws EntityNotFoundException {
HasStringUUIDPkJDO pojo = new HasStringUUIDPkJDO("First");
beginTxn();
pm.makePersistent(pojo);
commitTxn();
assertNotNull(pojo.getId());
Entity e = ds.get(KeyFactory.createKey(HasStringUUIDPkJDO.class.getSimpleName(), pojo.getId()));
beginTxn();
pm.getObjectById(HasStringUUIDPkJDO.class, e.getKey());
pm.getObjectById(HasStringUUIDPkJDO.class, e.getKey().getName());
pm.getObjectById(HasStringUUIDPkJDO.class, KeyFactory.keyToString(e.getKey()));