JDO Annotation

Discriminator

Target: ElementType.TYPE
Implemented Interfaces:
Annotation

Annotation for the discriminator of the class. Corresponds to the xml element "discriminator" of the "inheritance" element.
Since:
JDO 2.1

Public Annotation Attributes

String column default ""
Name of the column for the discriminator
Since:
JDO 2.1
Column[] columns default {}
The column(s) making up the discriminator.
Since:
JDO 2.1
String customStrategy default ""
Custom strategy to use for the discriminator.
If customStrategy is non-empty, then strategy must be UNSPECIFIED.
Since:
JDO 2.1
String indexed default ""
Whether the discriminator is indexed.
Since:
JDO 2.1
DiscriminatorStrategy strategy default DiscriminatorStrategy.UNSPECIFIED
Strategy to use for the discriminator.
The discriminator determines the class associated with a row in the datastore.
Since:
JDO 2.1
String value default ""
The value for the discriminator for objects of this class when using "value-map" strategy.
Since:
JDO 2.1