HHH-6318 : Change EntityIdentifier.attributeBinding to be type KeyValueBinding

This commit is contained in:
Gail Badner 2011-06-14 12:51:51 -07:00
parent b6f9d9d5d7
commit 4ef305ae2c
1 changed files with 3 additions and 3 deletions

View File

@ -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