Package org.hibernate.annotations
Annotation Type DiscriminatorOptions
-
@Target(TYPE) @Retention(RUNTIME) public @interface DiscriminatorOptions
Optional annotation used in conjunction with the JPA-definedDiscriminatorColumnannotation to express Hibernate-specific discriminator properties.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanforceIf enabled, allowed discriminator values are always explicitly enumerated inselectqueries, even when retrieving all instances of a root entity and its subtypes.booleaninsertShould befalseif a discriminator column is also part of a mapped composite identifier, and should not be duplicated in SQLINSERTstatements.
-
-
-
Element Detail
-
force
boolean force
If enabled, allowed discriminator values are always explicitly enumerated inselectqueries, even when retrieving all instances of a root entity and its subtypes. This is useful if there are discriminator column values which do not map to any subtype of the root entity type.- Returns:
trueif allowed discriminator values must always be explicitly enumerated
- Default:
- false
-
-