Even though Datanucleus' method seems better, I thought I'd list how I would have done it. If anyone thinks that there would be problems doing it my way, please let us all know.
Store a unique property of the parent (this would usually be the PrimaryKey of the parent) in a data field of the child (somewhat similar to having a foreign key in an RDDMS). Then you can simply query for the child entities that have a particular value for this field. On Apr 18, 10:10 am, datanucleus <[email protected]> wrote: > > Thanks a lot for the thoughts Hani, but I do only want the children, > > So do a JDOQL query for the elements > pm.newQuery("SELECT FROM MyElement WHERE myParent == :parent"); > and pass in the parent object, and add on any other filter > requirements. > > -- > 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 > athttp://groups.google.com/group/google-appengine-java?hl=en. -- 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.
