> 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 google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.


Reply via email to