HHH-6387 : Add EntityBinding.getFilterDefinitions() and addFilterDefinition()

This commit is contained in:
Gail Badner 2011-07-05 14:08:17 -07:00
parent ec482d3d0e
commit 3b22a9fd29
1 changed files with 10 additions and 0 deletions

View File

@ -31,6 +31,7 @@ import java.util.Set;
import org.hibernate.AssertionFailure;
import org.hibernate.EntityMode;
import org.hibernate.MappingException;
import org.hibernate.engine.spi.FilterDefinition;
import org.hibernate.metamodel.binding.state.EntityBindingState;
import org.hibernate.metamodel.domain.Attribute;
import org.hibernate.metamodel.domain.Entity;
@ -69,6 +70,7 @@ public class EntityBinding {
private SimpleAttributeBinding versionBinding;
private Map<String, AttributeBinding> attributeBindingMap = new HashMap<String, AttributeBinding>();
private Set<FilterDefinition> filterDefinitions = new HashSet<FilterDefinition>( );
private Set<EntityReferencingAttributeBinding> entityReferencingAttributeBindings = new HashSet<EntityReferencingAttributeBinding>();
private Caching caching;
@ -246,6 +248,14 @@ public class EntityBinding {
return getAttributeBindings();
}
public Iterable<FilterDefinition> getFilterDefinitions() {
return filterDefinitions;
}
public void addFilterDefinition(FilterDefinition filterDefinition) {
filterDefinitions.add( filterDefinition );
}
public Iterable<EntityReferencingAttributeBinding> getEntityReferencingAttributeBindings() {
return entityReferencingAttributeBindings;
}