diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/MetadataSources.java b/hibernate-core/src/main/java/org/hibernate/metamodel/MetadataSources.java index 11f40af728..691a56970f 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/MetadataSources.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/MetadataSources.java @@ -106,6 +106,7 @@ public class MetadataSources { private LinkedHashSet> annotatedClasses = new LinkedHashSet>(); private LinkedHashSet annotatedClassNames = new LinkedHashSet(); private LinkedHashSet annotatedPackages = new LinkedHashSet(); + private List> converterClasses; private boolean hasOrmXmlJaxbRoots; @@ -298,6 +299,13 @@ public class MetadataSources { return this; } + /** + * Adds an AttributeConverter by class. + * + * @param converterClass The AttributeConverter class. + * + * @return this (for method chaining purposes) + */ public MetadataSources addAttributeConverter(Class converterClass) { if ( converterClasses == null ) { converterClasses = new ArrayList>();