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

This commit is contained in:
Gail Badner 2011-06-14 13:54:24 -07:00
parent 4ef305ae2c
commit f12aad3493
1 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ public class EntityIdentifier {
); );
private final EntityBinding entityBinding; private final EntityBinding entityBinding;
private KeyValueBinding attributeBinding; private SimpleAttributeBinding attributeBinding;
private IdentifierGenerator identifierGenerator; private IdentifierGenerator identifierGenerator;
private IdGenerator idGenerator; private IdGenerator idGenerator;
// todo : mappers, etc // todo : mappers, etc
@ -59,11 +59,11 @@ public class EntityIdentifier {
this.entityBinding = entityBinding; this.entityBinding = entityBinding;
} }
public KeyValueBinding getValueBinding() { public SimpleAttributeBinding getValueBinding() {
return attributeBinding; return attributeBinding;
} }
public void setValueBinding(KeyValueBinding attributeBinding) { public void setValueBinding(SimpleAttributeBinding attributeBinding) {
if ( this.attributeBinding != null ) { if ( this.attributeBinding != null ) {
// todo : error? or just log? For now throw exception and see what happens. Easier to see whether this // todo : error? or just log? For now throw exception and see what happens. Easier to see whether this
// method gets called multiple times // method gets called multiple times