HHH-6352 : Change EntityBinding.getAttributeBindingClosureSpan() and getAttributeBindingClosure() to return data for declared attribute bindings

This commit is contained in:
Gail Badner 2011-06-29 15:35:07 -07:00
parent 1d26ac1e12
commit 86e0afce22
1 changed files with 4 additions and 7 deletions

View File

@ -229,10 +229,9 @@ public class EntityBinding {
* @return The number of attribute bindings
*/
public int getAttributeBindingClosureSpan() {
// TODO: fix this after HHH-6337 and HHH-6360 are fixed.
// TODO: fix this after HHH-6337 is fixed; for now just return size of attributeBindingMap
// if this is not a root, then need to include the superclass attribute bindings
//return attributeBindingMap.size();
return 1; // assume 1 for the ID attribute binding
return attributeBindingMap.size();
}
/**
@ -243,11 +242,9 @@ public class EntityBinding {
* @return The attribute bindings.
*/
public Iterable<AttributeBinding> getAttributeBindingClosure() {
// TODO: fix this after HHH-6337 and HHH-6360 are fixed. for now, just return the identifier binding
// TODO: fix this after HHH-6337 is fixed. for now, just return attributeBindings
// if this is not a root, then need to include the superclass attribute bindings
//return getAttributeBindings();
Set<AttributeBinding> set = Collections.singleton( (AttributeBinding) entityIdentifier.getValueBinding() );
return set;
return getAttributeBindings();
}
public Iterable<EntityReferencingAttributeBinding> getEntityReferencingAttributeBindings() {