JDO-GAE即使在注释IdGeneratorStrategy.IDENTITY时也会创建密钥

时间:2012-08-02 15:32:00

标签: google-app-engine google-cloud-datastore

我有以下代码,

public class UserAccount {

  @PrimaryKey
  @Persistent
  private Long id;  
  ....

所以,通过代码创建主键,但是当我通过

查看数据存储区查看器时
http://localhost:8888/_ah/admin , I see key got populated via datastore (some encoded key). Is this an expected behavior ?. The problem however is when I try to connect my child objects with the parent objects. Thanks alot. 

1 个答案:

答案 0 :(得分:0)

是的,绝对是预期的。有关详细信息,请查看JDO Keys