因此,我正在为我的 GWT 应用程序使用 google 数据存储区,而我的同事提出了一个我没有答案的有趣问题。当你删除一些对象时,这组键会发生什么?
例如,
人.java
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Person {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;
@Persistent
private Set<Key> favoriteFoods;
// ...
}
如果我从数据存储中删除了一些 favoriteFood 对象,会发生什么?该对象的密钥是否保留在密钥集中?我有责任从套装中取出钥匙吗?