Interface DiscriminatorSource
-
- All Superinterfaces:
ImplicitDiscriminatorColumnNameSource
,ImplicitNameSource
public interface DiscriminatorSource extends ImplicitDiscriminatorColumnNameSource
Contract for sources of information about a mapped discriminator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RelationalValueSource
getDiscriminatorRelationalValueSource()
Obtain the column/formula information about the discriminator.java.lang.String
getExplicitHibernateTypeName()
Obtain the discriminator type.boolean
isForced()
"Forces" Hibernate to specify the allowed discriminator values, even when retrieving all instances of the root class.boolean
isInserted()
Set this tofalse
, if your discriminator column is also part of a mapped composite identifier.-
Methods inherited from interface org.hibernate.boot.model.naming.ImplicitDiscriminatorColumnNameSource
getEntityNaming
-
Methods inherited from interface org.hibernate.boot.model.naming.ImplicitNameSource
getBuildingContext
-
-
-
-
Method Detail
-
getDiscriminatorRelationalValueSource
RelationalValueSource getDiscriminatorRelationalValueSource()
Obtain the column/formula information about the discriminator.- Returns:
- The column/formula information
-
getExplicitHibernateTypeName
java.lang.String getExplicitHibernateTypeName()
Obtain the discriminator type. Unlike the type of attributes, implementors here should generally specify the type in case of no user selection rather than return null because we cannot infer it from any physical java member.- Returns:
- The discriminator type
-
isForced
boolean isForced()
"Forces" Hibernate to specify the allowed discriminator values, even when retrieving all instances of the root class.- Returns:
true
in case the discriminator value should be forces,false
otherwise. Default isfalse
.
-
isInserted
boolean isInserted()
Set 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:
true
in case the discriminator value should be included in inserts,false
otherwise. Default istrue
.
-
-