Java 类org.hibernate.annotations.FilterDefs 实例源码

项目:lams    文件:AnnotationBinder.java   
private static void bindFilterDefs(XAnnotatedElement annotatedElement, Mappings mappings) {
    FilterDef defAnn = annotatedElement.getAnnotation( FilterDef.class );
    FilterDefs defsAnn = annotatedElement.getAnnotation( FilterDefs.class );
    if ( defAnn != null ) {
        bindFilterDef( defAnn, mappings );
    }
    if ( defsAnn != null ) {
        for ( FilterDef def : defsAnn.value() ) {
            bindFilterDef( def, mappings );
        }
    }
}