Home » JDO » Annotations » Field Modifiers » Version

javax.jdo.annotations.Version - JDO annotation

javax.jdo.annotations
Annotation Version

Target:
Classes
Annotation for the versioning of the class. Corresponds to the xml element "version" of the "class" and "property" elements.
Since:
JDO 2.1
String column
Name of the column for the version.
Name of the column for the version.
Returns:
the name of the column for the version
Default value:
""
Since:
JDO 2.1
The column(s) making up the version.
The column(s) making up the version.
Returns:
the column(s) making up the version
Default value:
{}
Since:
JDO 2.1
Custom strategy for versioning of objects of this class.
Custom 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 value:
""
Since:
JDO 2.1
Vendor extensions.
Vendor extensions.
Returns:
the vendor extensions
Default value:
{}
Since:
JDO 2.1
String indexed
Whether the version column(s) is(are) indexed.
Whether the version column(s) is(are) indexed.
Returns:
whether the version column(s) is(are) indexed
Default value:
""
Since:
JDO 2.1
Strategy for versioning of objects of this class.
Strategy for versioning of objects of this class.
Returns:
the strategy for versioning objects of this class
Default value:
javax.jdo.annotations.VersionStrategy.UNSPECIFIED
Since:
JDO 2.1

This documentation page is derived (with some adjustments) from the JDO 2.2 API
and is available under the terms of the Apache License, v. 2.0.