Is it possible to fetch the key of a child object without going to the
datastore to fetch that child object? I know I could store the key as a
string in addition to the object, however that seems unnecessary given that
the key must already be stored in the parent object for it to be able to
fetch the child. I am using DataNucleus JDO.
For example,
Server Side Service Code
MyClass myclass = pm.getObjectById(MyClass.class, someKey)
//is the following possible without fetching the childObject from the
datastore????
//All I want is the key
myclass.getChildObject().getId()
....................
@PersistenceCapable
class MyClass{
@Persistent
private ChildObject obj;
public ChildObject getChildObject(){
return obj;
}
….
}
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.