Any
mapping, using the JPA-defined DiscriminatorType. This annotation
must be used in combination with jakarta.persistence.Column to fully
describe the discriminator column for an @Any relationship.
@AnyDiscriminator is quite similar to
jakarta. in
single-table inheritance mappings, but it describes a discriminator held
along with the foreign key in the referring side of a discriminated
relationship.
This annotation may be used in conjunction with JdbcType or
JdbcTypeCode to more precisely specify the type mapping. On the
other hand, JdbcType or JdbcTypeCode may be used without
@AnyDiscriminator.
Any
| Modifier and Type | Method and Description |
|---|---|
| public DiscriminatorType |
| value | back to summary |
|---|---|
| public DiscriminatorType value() The type of the discriminator, as a JPA | |