Search in sources :

Example 1 with FetchProfile

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

the class AnnotationBinder method bindFetchProfiles.

private static void bindFetchProfiles(XAnnotatedElement annotatedElement, MetadataBuildingContext context) {
    FetchProfile fetchProfileAnnotation = annotatedElement.getAnnotation(FetchProfile.class);
    FetchProfiles fetchProfileAnnotations = annotatedElement.getAnnotation(FetchProfiles.class);
    if (fetchProfileAnnotation != null) {
        bindFetchProfile(fetchProfileAnnotation, context);
    }
    if (fetchProfileAnnotations != null) {
        for (FetchProfile profile : fetchProfileAnnotations.value()) {
            bindFetchProfile(profile, context);
        }
    }
}
Also used : FetchProfile(org.hibernate.annotations.FetchProfile) FetchProfiles(org.hibernate.annotations.FetchProfiles)

Aggregations

FetchProfile (org.hibernate.annotations.FetchProfile)1 FetchProfiles (org.hibernate.annotations.FetchProfiles)1