It works for me.
I have something like:
class Employee {
...
@Persistent(mappedBy="employee")
private List<ContactInfo> contactInfo;
.. }
class ContactInfo {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;
...}
than:
Employee e;
...
PersistenceManager pm = PMF.get().getPersistenceManager();
Transaction tx = pm.currentTransaction();
try {
tx.begin();
pm.makePersistent(e);
for (ContactInfo co : e.getContactInfo()) {
System.out.println(co.getKey());
}
tx.commit();
}
......
and it works as expected.
Could you provide more details ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---