JDO Annotation

DatastoreIdentity

Target: ElementType.TYPE
Implemented Interfaces:
Annotation

Annotation for the datastore identity of the class. Corresponds to the xml element "datastore-identity" of the "class" element.
Since:
JDO 2.1

Public Annotation Attributes

String column default ""
Name of the column for the datastore identity
Since:
JDO 2.1
Column[] columns default {}
The column(s) making up the datastore identity.
Since:
JDO 2.1
String customStrategy default ""
Custom strategy to use to generate the value for the identity.
If customStrategy is non-empty, then strategy must be UNSPECIFIED.
Since:
JDO 2.1
Extension[] extensions default {}
Vendor extensions.
Since:
JDO 2.1
String sequence default ""
Name of sequence to use when the strategy involves sequences
Since:
JDO 2.1
IdGeneratorStrategy strategy default IdGeneratorStrategy.UNSPECIFIED
Strategy to use when generating datastore identities
Since:
JDO 2.1