Re: [appengine-java] Help with One to Many owned relationship and Datastore

2010-01-15 Thread Ikai L (Google)
If you use the loop to continue to addChild() on the Key, your Key will look something like this: Page1->IMG_A->IMG_B->IMG_C What you want are Keys that look like this: Page1->IMG_A Page2->IMG_B If you continue to set children on the same builder object, you will likely be setting Images to be

[appengine-java] Help with One to Many owned relationship and Datastore

2010-01-13 Thread Ftaylor
I have a class Page with a variable List images. @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Page { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Persistent private final List images; ... } My IMG class looks like this: @