From 567df233cccaf14836b42de4ebd40f5cf52dba64 Mon Sep 17 00:00:00 2001 From: brmeyer Date: Fri, 19 Oct 2012 12:17:35 -0400 Subject: [PATCH] HHH-7703: @TypeDefs processed, but not used https://hibernate.onjira.com/browse/HHH-7703 --- .../attribute/type/AttributeTypeResolver.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/attribute/type/AttributeTypeResolver.java b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/attribute/type/AttributeTypeResolver.java index 96d709e5f3..5ccc76f769 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/attribute/type/AttributeTypeResolver.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/attribute/type/AttributeTypeResolver.java @@ -35,13 +35,24 @@ import java.util.Map; */ public interface AttributeTypeResolver { /** - * @return returns an explicit hibernate type name in case the mapped attribute has an additional + * @return Returns an explicit hibernate type name in case the mapped attribute has an additional * {@link org.hibernate.annotations.Type} annotation or an implicit type is given via the use of annotations like * {@link javax.persistence.Lob}, {@link javax.persistence.Enumerated} and - * {@link javax.persistence.Temporal}. + * {@link javax.persistence.Temporal}. If no annotated types are + * available, checks for type definitions in + * {@link javax.persistence.TypeDefs}. Returns null if none of the + * above are found. */ String getExplicitHibernateTypeName(); + /** + * @return Returns the same type name as + * {@link #getExplicitHibernateTypeName}, but skips the + * {@link javax.persistence.TypeDefs} check. This is mainly for + * {@link CompositeAttributeTypeResolver}, as it needs to check the + * {@link javax.persistence.TypeDefs} only once at the very end if nothing + * is returned by the list of resolvers. + */ String getExplicitAnnotatedHibernateTypeName(); /**