Can we store two unowned objects(one to many) in datastore in a single
transaction.
For example - We have
public class Person {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;
@Persistent
private String name;
@Persistent
private List<Key> mobileIds = new ArrayList<Key>();
//....
//.....
}
public class Mobile {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key mobileId;
// ...
//....
}
I want to store these two objects in datastore in single transaction so that
relation can be made in between both objects.
Tell me if any other solution is there ?
--
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.