Kev*_*vMo 2 java gwt google-app-engine google-cloud-datastore
所以,我正在使用谷歌数据存储区为我的GWT应用程序,我的同事想出了一个有趣的问题,我没有答案.删除某些对象时,该组键会发生什么变化?
例如,
Person.java
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Person {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;
@Persistent
private Set<Key> favoriteFoods;
// ...
}
Run Code Online (Sandbox Code Playgroud)
如果我从数据存储中删除一些favoriteFood对象会发生什么?该对象的密钥是否保留在密钥集中?我有责任从套装中取出钥匙吗?
归档时间: |
|
查看次数: |
1208 次 |
最近记录: |