You have to store both A and B.  At least in Python, and I assume in
Java, storing A will not auto-persist B.


Robert







On Wed, Sep 1, 2010 at 06:39, ping <[email protected]> wrote:
> Hello,
> I wonder whats the exact approach of storing one-to-many related
> entities into the datastore.
> for example having a Entity "A" which holds a list of entities "B" and
> the entity "B" refers back to the entity "A". so they are related as 1-
> to-many :)
> Do i have to persist all "B" entities first when i want to persist a
> "A" entity or is it enough to add the "B" entities to the List in "A"
> and call the makePesistent() method just on the "A" entity?
> Are the B entities stored automatically? because this is not the case
> for me :/
>
> greets
>
> --
> 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.
>
>

-- 
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