Search in sources :

Example 1 with TypeDefs

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

the class AnnotationBinder method bindTypeDefs.

private static void bindTypeDefs(XAnnotatedElement annotatedElement, MetadataBuildingContext context) {
    TypeDef defAnn = annotatedElement.getAnnotation(TypeDef.class);
    TypeDefs defsAnn = annotatedElement.getAnnotation(TypeDefs.class);
    if (defAnn != null) {
        bindTypeDef(defAnn, context);
    }
    if (defsAnn != null) {
        for (TypeDef def : defsAnn.value()) {
            bindTypeDef(def, context);
        }
    }
}
Also used : TypeDef(org.hibernate.annotations.TypeDef) TypeDefs(org.hibernate.annotations.TypeDefs)

Aggregations

TypeDef (org.hibernate.annotations.TypeDef)1 TypeDefs (org.hibernate.annotations.TypeDefs)1