// domainTypeHandler, null,
// domainTypeHandler.getValueHandler(sm),
// domainTypeHandler.createKeyValueHandler(id.getIdObject()));
// initialize via OpenJPA protocol
// select all columns from table
ValueHandler keyValueHandler = domainTypeHandler.createKeyValueHandler(id.getIdObject());
ResultData resultData = session.selectUnique(domainTypeHandler,
keyValueHandler,
null);
// create an OpenJPA Result from the ndb result data
NdbOpenJPAResult result = new NdbOpenJPAResult(resultData, domainTypeHandler, null);