is the existing child object null in the parent? otherwise try modifying the child object that you get from the parent? and do you have the mappedBy property set in the parents annotation?
On Thu, Jan 28, 2010 at 11:05 AM, Nick Wiedenbrueck < [email protected]> wrote: > Thanks for the answer, Robert. > > > it seems it gets refreshed when accessing it via the parent. > > I didn't have that experience. When I first update the child (by > setting it to a newly created instance) and access it then within the > same PM, I get the updated value. But If I load it next time, it would > have the old value again. > > Also, I can't imagine how the reference is made up in the datastore. > When setting the child to a new value, there are two child entities in > the datastore, which both reference the same parent. The parent has no > reference to it's actual child. So how should the datastore decide, > which of the child entities is the correct one. > > -- > 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]<google-appengine-java%[email protected]> > . > For more options, visit this group at > http://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.
