【问题标题】:JDO-GAE Key getting created even when IdGeneratorStrategy.IDENTITY is commented即使 IdGeneratorStrategy.IDENTITY 被评论,JDO-GAE 密钥也会被创建
【发布时间】:2012-08-02 15:31:59
【问题描述】:

我有以下代码,

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. 

【问题讨论】:

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


    【解决方案1】:

    是的,这是完全可以预料的。欲了解更多信息,请查看JDO Keys

    【讨论】:

      猜你喜欢
      • 2016-07-02
      • 2018-11-16
      • 2013-10-26
      • 2013-02-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-16
      • 2013-01-04
      相关资源
      最近更新 更多