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

项目:lams    文件:AnnotationBinder.java   
private static void bindFetchProfiles(XAnnotatedElement annotatedElement, Mappings mappings) {
    FetchProfile fetchProfileAnnotation = annotatedElement.getAnnotation( FetchProfile.class );
    FetchProfiles fetchProfileAnnotations = annotatedElement.getAnnotation( FetchProfiles.class );
    if ( fetchProfileAnnotation != null ) {
        bindFetchProfile( fetchProfileAnnotation, mappings );
    }
    if ( fetchProfileAnnotations != null ) {
        for ( FetchProfile profile : fetchProfileAnnotations.value() ) {
            bindFetchProfile( profile, mappings );
        }
    }
}