0

我有以下代码,

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. 
4

1 回答 1

0

是的,这是完全可以预料的。有关更多信息,请查看JDO 密钥

于 2012-10-13T05:38:25.493 回答