0

我在用着

@GeneratedValue(strategy = GenerationType.IDENTITY)

在我的 JPA 实体中,让 Google AppEngine 为我的实体生成 id。现在我想知道是否为每个实体或我的应用程序的完整数据存储生成了一个唯一的。

我问的原因是我想使用实体的 id 作为搜索文档的标识符。

4

1 回答 1

0

根据文档IDs are allocated within a namespace defined by a parent key and a kind

于 2013-05-14T08:43:55.190 回答