3.7.3.1. Datastore Identity
JPA typically requires you to declare one or more Id fields to act as primary keys.
OpenJPA, however, can create and maintain a surrogate primary key value when you do not declare any Id fields.
This form of persistent identity is called datastore identity. Object Identity discusses OpenJPA’s support for datastore identity in JPA.
We cover how to map your datastore identity primary key column in Datastore Identity Mapping