From 3b22a9fd29d4b4ec6f1349a2d4d90ff8892ff416 Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Tue, 5 Jul 2011 14:08:17 -0700 Subject: [PATCH] HHH-6387 : Add EntityBinding.getFilterDefinitions() and addFilterDefinition() --- .../org/hibernate/metamodel/binding/EntityBinding.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/binding/EntityBinding.java b/hibernate-core/src/main/java/org/hibernate/metamodel/binding/EntityBinding.java index 0af9603a2d..1aed477588 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/binding/EntityBinding.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/binding/EntityBinding.java @@ -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 attributeBindingMap = new HashMap(); + private Set filterDefinitions = new HashSet( ); private Set entityReferencingAttributeBindings = new HashSet(); private Caching caching; @@ -246,6 +248,14 @@ public class EntityBinding { return getAttributeBindings(); } + public Iterable getFilterDefinitions() { + return filterDefinitions; + } + + public void addFilterDefinition(FilterDefinition filterDefinition) { + filterDefinitions.add( filterDefinition ); + } + public Iterable getEntityReferencingAttributeBindings() { return entityReferencingAttributeBindings; }