Re: Trouble understanding how to lookup objects that have a Datastore Identity by their PK (if the PK is not identified in the model)


Use of implementation-specific classes is always a bad idea IMHO. Imagine hardcoding Kodo-specific stuff and then finding that you need to change provider some time later ...

You could do something like
MyClass myObj = pm.getObjectById(MyClass.class, theIdValue);

This would likely work whether you are using (single-field) application identity OR datastore identity. And you don't need to cast anything ...

Join to automatically receive all group messages.