Skip to content

Instantly share code, notes, and snippets.

@sebersole
Created July 28, 2011 17:16
Show Gist options
  • Save sebersole/1111995 to your computer and use it in GitHub Desktop.
Save sebersole/1111995 to your computer and use it in GitHub Desktop.
class EntityBinding ... {
...
private Map<String, AttributeBinding> attributeBindingMap = new HashMap<String, AttributeBinding>();
...
public Iterable<AttributeBinding> getSubclassAttributeClosure() {
List<AttributeBinding> closure = new ArrayList<AttributeBinding>();
EntityBinding entityBinding = this;
while ( entityBinding != null ) {
entityBinding.collectAttributeBindings( closure );
entityBinding = entityBinding.superEntityBinding;
}
return closure;
}
private void collectAttributeBindings(List<AttributeBinding> attributes) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment