> Hi Shawn,
>
> My apologies, but ...
> pm.getObjectById(TestDN.class, key) will fail if the persistent type of the
> entity referenced by key is not TestDN.class.
Hey no problem. All is well. We can determine the class by the key
(key.getKind()) and use that to do the lookup
if(key.getKind().equals("TestDN$TestSubDN")) {
Object o = pm.getObjectById(TestDN.TestSubDN.class, key);
}else{
...another query
}
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.