Package javax.jdo.annotations
Annotation Type Version
Annotation for the versioning of the class.
Corresponds to the xml element "version" of the "class" and "property"
elements.
- Since:
- 2.1
- Version:
- 2.1
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionName of the column for the version.Column[]
The column(s) making up the version.Custom strategy for versioning of objects of this class.Vendor extensions.Whether the version column(s) is(are) indexed.Strategy for versioning of objects of this class.
-
Element Details
-
strategy
VersionStrategy strategyStrategy for versioning of objects of this class.- Returns:
- the strategy for versioning objects of this class
- Default:
UNSPECIFIED
-
customStrategy
String customStrategyCustom strategy for versioning of objects of this class. If customStrategy is non-empty, strategy must be UNSPECIFIED.- Returns:
- the custom strategy for versioning objects of this class
- Default:
""
-
column
String columnName of the column for the version.- Returns:
- the name of the column for the version
- Default:
""
-
indexed
String indexedWhether the version column(s) is(are) indexed.- Returns:
- whether the version column(s) is(are) indexed
- Default:
""
-
columns
Column[] columnsThe column(s) making up the version.- Returns:
- the column(s) making up the version
- Default:
{}
-
extensions
Extension[] extensionsVendor extensions.- Returns:
- the vendor extensions
- Default:
{}
-