[appengine-java] Re: JDO model issue

2010-02-26 Thread atomi
Has anyone figured out a convention for this? Rusty I like your idea of populating the Race in the Result entity but re-attaching the object later would cause problems (would you have to set Race to null before persisting again?). I too find it odd to have entity object performing queries but if

[appengine-java] Re: JDO model issue

2010-02-08 Thread Jake
Hey, Relationships in GAE are a bit picky. It is my understanding that you can only persist children by way of persisting their parents. So, in your case, both Race and Runner are children of Result and you would only persist the two result objects - the dependent children would be persisted

Re: [appengine-java] Re: JDO model issue

2010-02-08 Thread Rusty Wright
I agree with Jake; relationships are tricky. Likewise with his pointing out that having race be in two Results will be a problem; that won't fly. Another way would be to have a ListResult in Race, and add your Results to that. But you're still going to have parenting problems when you have