Package org.hibernate.annotations
Annotation Type DiscriminatorOptions
Optional annotation to express Hibernate specific discrimintor properties.
-
Optional Element Summary
Optional Elements
-
Element Details
-
force
boolean force"Forces" Hibernate to specify the allowed discriminator values, even when retrieving all instances of the root class.- Returns:
truein case the discriminator value should be forces,falseotherwise. Default isfalse.
- Default:
false
-
insert
boolean insertSet this tofalse, if your discriminator column is also part of a mapped composite identifier. It tells Hibernate not to include the column in SQL INSERTs.- Returns:
truein case the discriminator value should be included in inserts,falseotherwise. Default istrue.
- Default:
true
-