From 151d9ce316f90f3766352db72effa62bc056e3eb Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Fri, 27 May 2011 11:55:55 -0700 Subject: [PATCH] HHH-6232 : Minor correction adding discriminator value to DiscriminatorBindingState --- .../hbm/state/binding/HbmDiscriminatorBindingState.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/source/hbm/state/binding/HbmDiscriminatorBindingState.java b/hibernate-core/src/main/java/org/hibernate/metamodel/source/hbm/state/binding/HbmDiscriminatorBindingState.java index 026fba171c..a6ad6feed5 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/source/hbm/state/binding/HbmDiscriminatorBindingState.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/source/hbm/state/binding/HbmDiscriminatorBindingState.java @@ -37,7 +37,6 @@ import org.hibernate.metamodel.source.hbm.xml.mapping.XMLHibernateMapping.XMLCla */ public class HbmDiscriminatorBindingState extends AbstractHbmAttributeBindingState implements DiscriminatorBindingState { - private final XMLDiscriminator discriminator; private final String discriminatorValue; private final boolean isForced; private final boolean isInserted; @@ -53,10 +52,10 @@ public class HbmDiscriminatorBindingState extends AbstractHbmAttributeBindingSta super( ownerClassName, defaults.getDefaultDiscriminatorColumnName(), defaults, null, null, null, true ); + XMLDiscriminator discriminator = xmlEntityClazz.getDiscriminator(); this.discriminatorValue = MappingHelper.getStringValue( xmlEntityClazz.getDiscriminatorValue(), entityName ); - this.discriminator = xmlEntityClazz.getDiscriminator(); this.isForced = xmlEntityClazz.getDiscriminator().isForce(); this.isInserted = discriminator.isInsert(); this.typeName = discriminator.getType() == null ? "string" : discriminator.getType(); @@ -79,10 +78,6 @@ public class HbmDiscriminatorBindingState extends AbstractHbmAttributeBindingSta return false; } - public boolean isInsertable() { - return discriminator.isInsert(); - } - @Override public boolean isInserted() { return isInserted;