Top Description Methods
org.hibernate.annotations

public @Interface DiscriminatorOptions

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

Optional annotation used in conjunction with the JPA-defined jakarta.persistence.DiscriminatorColumn annotation to express Hibernate-specific discriminator properties.
Author
Hardy Ferentschik

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if allowed discriminator values must always be explicitly enumerated
force
()

If enabled, allowed discriminator values are always explicitly enumerated in select queries, even when retrieving all instances of a root entity and its subtypes.

public boolean
insert()

Should be false if a discriminator column is also part of a mapped composite identifier, and should not be duplicated in SQL INSERT statements.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

forceback to summary
public boolean force()

If enabled, allowed discriminator values are always explicitly enumerated in select queries, 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:boolean

true if allowed discriminator values must always be explicitly enumerated

insertback to summary
public boolean insert()

Should be false if a discriminator column is also part of a mapped composite identifier, and should not be duplicated in SQL INSERT statements.