Package javax.jdo.annotations
Annotation Type Discriminator
-
@Target(TYPE) @Retention(RUNTIME) public @interface DiscriminatorAnnotation for the discriminator of the class. Corresponds to the xml element "discriminator" of the "inheritance" element.- Since:
- 2.1
- Version:
- 2.1
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringcolumnName of the column for the discriminatorColumn[]columnsThe column(s) making up the discriminator.java.lang.StringcustomStrategyCustom strategy to use for the discriminator.java.lang.StringindexedWhether the discriminator is indexed.DiscriminatorStrategystrategyStrategy to use for the discriminator.java.lang.StringvalueThe value for the discriminator for objects of this class when using "value-map" strategy.
-
-
-
Element Detail
-
strategy
DiscriminatorStrategy strategy
Strategy to use for the discriminator. The discriminator determines the class associated with a row in the datastore.- Returns:
- the strategy to use for the discriminator
- Default:
- javax.jdo.annotations.DiscriminatorStrategy.UNSPECIFIED
-
-
-
columns
Column[] columns
The column(s) making up the discriminator.- Returns:
- the column(s) making up the discriminator
- Default:
- {}
-
-