Use @DiscriminatorClass with a @VariableOneToOne annotation to determine which entities will be added to the list of types for the mapping.
Table 2-19 describes this annotation's elements.
Table 2-19 @DiscriminatorClass Annotation Elements
| Annotation Element | Description | Default |
|---|---|---|
|
|
(Required) The discriminator to be stored in the database. |
|
|
value |
(Required) The class to be instantiated with the |
The @DiscriminatorClass annotation can be specified only within a @VariableOneToOne mapping.
See "@VariableOneToOne" for an example of a variable one-to-one mapping with @DiscriminatorClass.
For more information, see:
Understanding Oracle TopLink