Top Description Methods
org.hibernate.annotations

public @Interface DiscriminatorOptions

extends Annotation
Annotations
@Target:TYPE
@Retention:RUNTIME
Imports
java.lang.annotation.Retention, .Target

Optional annotation to express Hibernate specific discrimintor properties.
Author
Hardy Ferentschik

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true in case the discriminator value should be forces, false otherwise. Default is false.
force
()

"Forces" Hibernate to specify the allowed discriminator values, even when retrieving all instances of the root class.

public boolean

Returns:

true in case the discriminator value should be included in inserts, false otherwise. Default is true.
insert
()

Set this to false, if your discriminator column is also part of a mapped composite identifier.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

forceback to summary
public boolean force()

"Forces" Hibernate to specify the allowed discriminator values, even when retrieving all instances of the root class.

Returns:boolean

true in case the discriminator value should be forces, false otherwise. Default is false.

insertback to summary
public boolean insert()

Set this to false, if your discriminator column is also part of a mapped composite identifier. It tells Hibernate not to include the column in SQL INSERTs.

Returns:boolean

true in case the discriminator value should be included in inserts, false otherwise. Default is true.