[appengine-java] Re: Help with modeling JDO persistent classes

2010-03-13 Thread kattus
Thanks for the reply. I have thought of this way as well, the problem is that I want to allow the user to change the value of A.name. In this case I will have to change all the B.Aname values too, which may by then be thousands of Bs. This will also force me to put A and B in the same entity group

[appengine-java] Re: Help with modeling JDO persistent classes

2010-03-12 Thread objectuser
One way to do this would be to duplicate A.name on the associated Bs. class A { Long id; String name; ... } class B { Long id; Long Aid; Long Aname; ... } Then you'd be able to do your select on just the B entity group and it would work. On Mar 10, 2:59 am, kattus wrote: > Hi, >