From 4ef305ae2c9632df2cfa89803a21030309a07764 Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Tue, 14 Jun 2011 12:51:51 -0700 Subject: [PATCH] HHH-6318 : Change EntityIdentifier.attributeBinding to be type KeyValueBinding --- .../org/hibernate/metamodel/binding/EntityIdentifier.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/binding/EntityIdentifier.java b/hibernate-core/src/main/java/org/hibernate/metamodel/binding/EntityIdentifier.java index 2ff1c33e81..92494aff85 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/binding/EntityIdentifier.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/binding/EntityIdentifier.java @@ -45,7 +45,7 @@ public class EntityIdentifier { ); private final EntityBinding entityBinding; - private AttributeBinding attributeBinding; + private KeyValueBinding attributeBinding; private IdentifierGenerator identifierGenerator; private IdGenerator idGenerator; // todo : mappers, etc @@ -59,11 +59,11 @@ public class EntityIdentifier { this.entityBinding = entityBinding; } - public AttributeBinding getValueBinding() { + public KeyValueBinding getValueBinding() { return attributeBinding; } - public void setValueBinding(AttributeBinding attributeBinding) { + public void setValueBinding(KeyValueBinding attributeBinding) { if ( this.attributeBinding != null ) { // todo : error? or just log? For now throw exception and see what happens. Easier to see whether this // method gets called multiple times