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

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