I have a object mapped to the Datastore that looks like:
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class SyncConfiguration {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;
@Persistent
private Account account1;
@Persistent
private Account account2;
......
}
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Account {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;
@Persistent
private String email;
.....
}
if i am now loading the object back from the store with
final SyncConfiguration syncConfig = pm.getObjectById
(SyncConfiguration.class, action.getSyncConfigId());
the fields account1 and account2 have the same instance.
Do i have to configure something in a different way or is it a bug?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---