On thing to remember with parent/entity groups and that is your can't
change them after the fact.
So if you ever want to move an entity between objects (ie parents
swapping children)
you would then want to use reference properties (child -> parent) or
hold a list of keys in the parent of the children

Rgds

Tim

On Aug 27, 12:38 pm, Laimonas Simutis <[email protected]> wrote:
> Maybe my search skills are sucking at the moment, but I am failing to
> find a good example of Entity Group modeling.
>
> I started 
> here:http://code.google.com/appengine/docs/python/datastore/modelclass.html
>   (The Model class)
>
> which then led me 
> tohttp://code.google.com/appengine/docs/python/datastore/keysandentityg...
> (Keys and Entity Groups)
>
> Mainly, what I am trying to find is how to declare the Parent and
> Child objects, and then how does parent "walk" to child and vice
> versa.
>
> If I have
>
> class MyParent(db.Model):
>
> class MyParentChild(db.Model):
>
> what do I add to the above declarations to wire up parent and child to
> be part of an entity group. Do I still use ReferenceProperty? (but
> what if I want one to one and not one to many?)
>
> Thanks for any pointers,
>
> L
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to