Search in sources :

Example 1 with FilterDefs

use of org.hibernate.annotations.FilterDefs in project hibernate-orm by hibernate.

the class AnnotationBinder method bindFilterDefs.

private static void bindFilterDefs(XAnnotatedElement annotatedElement, MetadataBuildingContext context) {
    FilterDef defAnn = annotatedElement.getAnnotation(FilterDef.class);
    FilterDefs defsAnn = annotatedElement.getAnnotation(FilterDefs.class);
    if (defAnn != null) {
        bindFilterDef(defAnn, context);
    }
    if (defsAnn != null) {
        for (FilterDef def : defsAnn.value()) {
            bindFilterDef(def, context);
        }
    }
}
Also used : FilterDef(org.hibernate.annotations.FilterDef) FilterDefs(org.hibernate.annotations.FilterDefs)

Aggregations

FilterDef (org.hibernate.annotations.FilterDef)1 FilterDefs (org.hibernate.annotations.FilterDefs)1