|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.metamodel.source.annotations.attribute.DiscriminatorSourceImpl
public class DiscriminatorSourceImpl
Constructor Summary | |
---|---|
DiscriminatorSourceImpl(EntityClass entityClass)
|
Method Summary | |
---|---|
RelationalValueSource |
getDiscriminatorRelationalValueSource()
Obtain the column/formula information about the discriminator. |
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 to false , if your discriminator column is also part of a mapped composite identifier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiscriminatorSourceImpl(EntityClass entityClass)
Method Detail |
---|
public boolean isForced()
DiscriminatorSource
isForced
in interface DiscriminatorSource
true
in case the discriminator value should be forces, false
otherwise. Default
is false
.public boolean isInserted()
DiscriminatorSource
false
, if your discriminator column is also part of a mapped composite identifier.
It tells Hibernate not to include the column in SQL INSERTs.
isInserted
in interface DiscriminatorSource
true
in case the discriminator value should be included in inserts, false
otherwise.
Default is true
.public RelationalValueSource getDiscriminatorRelationalValueSource()
DiscriminatorSource
getDiscriminatorRelationalValueSource
in interface DiscriminatorSource
public String getExplicitHibernateTypeName()
DiscriminatorSource
getExplicitHibernateTypeName
in interface DiscriminatorSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |