Hello,
I'm writing an app in Java with the following class definitions
(pseudo-code):
@PersistenceCapable(identityType = IdentityType.APPLICATION,
detachable="true")
class Owner {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long ownerId;
// other persistent fields
@Persistent(defaultFetchGroup="true")
private LinkedList<Pets> pets;
public void addPet(Pet pet) {
this.pets.add(pet);
}
}
@PersistenceCapable(identityType = IdentityType.APPLICATION,
detachable="true")
public class Pets {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;
// other persistent fields
}
Both classes are detachable so that I can work with copies of the
entities after the PersistenceManager is closed. The problem I'm
running in to is when I query an Owner entity, it doesn't have any of
its pets. The LinkedList is empty after running owner.addPet(pet). How
do I get access to an Owner entity's pets?
Thanks,
Tim
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---