接口 DiscriminatorSource
-
public interface DiscriminatorSource extends ImplicitDiscriminatorColumnNameSource
Contract for sources of information about a mapped discriminator.- 作者:
- Hardy Ferentschik, Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 RelationalValueSourcegetDiscriminatorRelationalValueSource()Obtain the column/formula information about the discriminator.StringgetExplicitHibernateTypeName()Obtain the discriminator type.booleanisForced()"Forces" Hibernate to specify the allowed discriminator values, even when retrieving all instances of the root class.booleanisInserted()Set this tofalse, if your discriminator column is also part of a mapped composite identifier.-
从接口继承的方法 org.hibernate.boot.model.naming.ImplicitDiscriminatorColumnNameSource
getEntityNaming
-
从接口继承的方法 org.hibernate.boot.model.naming.ImplicitNameSource
getBuildingContext
-
-
-
-
方法详细资料
-
getDiscriminatorRelationalValueSource
RelationalValueSource getDiscriminatorRelationalValueSource()
Obtain the column/formula information about the discriminator.- 返回:
- The column/formula information
-
getExplicitHibernateTypeName
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.- 返回:
- The discriminator type
-
isForced
boolean isForced()
"Forces" Hibernate to specify the allowed discriminator values, even when retrieving all instances of the root class.- 返回:
truein case the discriminator value should be forces,falseotherwise. 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.- 返回:
truein case the discriminator value should be included in inserts,falseotherwise. Default istrue.
-
-