我在用着
@GeneratedValue(strategy = GenerationType.IDENTITY)
在我的 JPA 实体中,让 Google AppEngine 为我的实体生成 id。现在我想知道是否为每个实体或我的应用程序的完整数据存储生成了一个唯一的。
我问的原因是我想使用实体的 id 作为搜索文档的标识符。
我在用着
@GeneratedValue(strategy = GenerationType.IDENTITY)
在我的 JPA 实体中,让 Google AppEngine 为我的实体生成 id。现在我想知道是否为每个实体或我的应用程序的完整数据存储生成了一个唯一的。
我问的原因是我想使用实体的 id 作为搜索文档的标识符。
根据文档:IDs are allocated within a namespace defined by a parent key and a kind