On Mon, Jan 18, 2010 at 10:49 PM, Siddharth Patnaik <[email protected]> wrote: > Hi Guys, > This is an urgent issue for me. Can anyone of you please respond to > this question? If the question is not clear or more info is required > please let me know > > On Jan 17, 7:07 pm, Siddharth Patnaik <[email protected]> wrote: >> Hi, >> I have the following situation. I have 2 entities User and Tour and i >> wanted to have unowned relationship between these two. I have followed >> the the relationships article on GAE documentation. I am taking care >> of relationships at both the ends. However my problem is that only one >> side of the relationship is getting persisted. Here is my sample code: >> >> create a persistence manager, pm >> start transaction >> create Tour object >> set the values for this object >> add a user object //as part of this i am also adding the tour object >> to the user object >> pm.makePersistent(tour); >> commit the transaction >> >> My problem is, the user object is never getting updated (with tour >> relationship info) >> How do i achieve this?
Why not just do ManyToMany like in a normal relational database. Make a link table that contains indexed id's to each of the others that are linked?
-- 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.
