use of org.hibernate.annotations.GenericGenerators in project hibernate-orm by hibernate.
the class AnnotationBinder method bindGenericGenerators.
private static void bindGenericGenerators(XAnnotatedElement annotatedElement, MetadataBuildingContext context) {
GenericGenerator defAnn = annotatedElement.getAnnotation(GenericGenerator.class);
GenericGenerators defsAnn = annotatedElement.getAnnotation(GenericGenerators.class);
if (defAnn != null) {
bindGenericGenerator(defAnn, context);
}
if (defsAnn != null) {
for (GenericGenerator def : defsAnn.value()) {
bindGenericGenerator(def, context);
}
}
}
Aggregations