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

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