public class DiscriminatorSourceImpl extends Object implements DiscriminatorSource
Constructor and Description |
---|
DiscriminatorSourceImpl(EntityClass entityClass) |
Modifier and Type | Method and Description |
---|---|
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. |
public DiscriminatorSourceImpl(EntityClass entityClass)
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
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.