Top Description Methods
org.hibernate.boot.model.source.spi

public Interface DiscriminatorSource

extends ImplicitDiscriminatorColumnNameSource
Imports
org.hibernate.boot.model.naming.ImplicitDiscriminatorColumnNameSource

Contract for sources of information about a mapped discriminator.
Authors
Hardy Ferentschik, Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public RelationalValueSource

Returns:

The column/formula information
getDiscriminatorRelationalValueSource
()

Obtain the column/formula information about the discriminator.

public String

Returns:

The discriminator type
getExplicitHibernateTypeName
()

Obtain the discriminator type.

public boolean

Returns:

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

"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.
isInserted
()

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

Inherited from org.hibernate.boot.model.naming.ImplicitDiscriminatorColumnNameSource:
getEntityNaming

Method Detail

getDiscriminatorRelationalValueSourceback to summary
public RelationalValueSource getDiscriminatorRelationalValueSource()

Obtain the column/formula information about the discriminator.

Returns:RelationalValueSource

The column/formula information

getExplicitHibernateTypeNameback to summary
public 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:String

The discriminator type

isForcedback to summary
public boolean isForced()

"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.

isInsertedback to summary
public boolean isInserted()

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.