org.hibernate.annotations
@Target(value=TYPE) @Retention(value=RUNTIME) public @interface DiscriminatorOptions
Modifier and Type | Optional Element and Description |
---|---|
boolean |
force
"Forces" Hibernate to specify the allowed discriminator values, even when retrieving all instances of the root class.
|
boolean |
insert
Set this to
false , if your discriminator column is also part of a mapped composite identifier. |
public abstract boolean force
true
in case the discriminator value should be forces, false
otherwise. Default is false
.public abstract boolean insert
false
, if your discriminator column is also part of a mapped composite identifier.
It tells Hibernate not to include the column in SQL INSERTs.true
in case the discriminator value should be included in inserts, false
otherwise.
Default is true
.Copyright © 2014. All Rights Reserved.