Search in sources :

Example 1 with GenericGenerators

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);
        }
    }
}
Also used : GenericGenerators(org.hibernate.annotations.GenericGenerators) GenericGenerator(org.hibernate.annotations.GenericGenerator)

Aggregations

GenericGenerator (org.hibernate.annotations.GenericGenerator)1 GenericGenerators (org.hibernate.annotations.GenericGenerators)1