use of org.hibernate.annotations.FetchProfiles 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);
}
}
}
Aggregations