Hello:
I am having trouble retrieving a collection of child objects
(PackageEntry) in my parent class(Student). The PackageEntry objects
are persisting correctly and I can see that they are in the same
entity group as their associated student, but when I retrieve the
parent parent Student, the List of PackageEntry is null.
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Student implements Entity {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
Key key;
.....
@Persistent(mappedBy = "student")
List<PackageEntry> packages;
}
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class PackageEntry implements Entity {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
Key key;
....
@Persistent Student student;
}
All of the PackageEntry objects that I persist are returned when I
query all objects of that type, but the ones attached to a particular
student are not present when I retrieve the student. What is going on?
Your help is greatly appreciated.
Thanks,
Justin
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" 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-java?hl=en.