Created
July 28, 2011 17:16
-
-
Save sebersole/1111995 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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