Package javax.jdo.annotations
Annotation Type DatastoreIdentity
Annotation for the datastore identity of the class.
Corresponds to the xml element "datastore-identity" of the "class" element.
- Since:
- 2.1
- Version:
- 2.1
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionName of the column for the datastore identityColumn[]
The column(s) making up the datastore identity.Custom strategy to use to generate the value for the identity.Vendor extensions.Name of sequence to use when the strategy involves sequencesStrategy to use when generating datastore identities
-
Element Details
-
strategy
IdGeneratorStrategy strategyStrategy to use when generating datastore identities- Returns:
- Strategy to use when generating datastore identities
- Default:
UNSPECIFIED
-
customStrategy
String customStrategyCustom strategy to use to generate the value for the identity. If customStrategy is non-empty, then strategy must be UNSPECIFIED.- Returns:
- the custom strategy
- Default:
""
-
sequence
String sequenceName of sequence to use when the strategy involves sequences- Returns:
- Name of sequence to use when the strategy involves sequences
- Default:
""
-
column
String columnName of the column for the datastore identity- Returns:
- Name of the column for the datastore identity
- Default:
""
-
columns
Column[] columnsThe column(s) making up the datastore identity.- Returns:
- The column(s) making up the datastore identity.
- Default:
{}
-
extensions
Extension[] extensionsVendor extensions.- Returns:
- the vendor extensions
- Default:
{}
-