HHH-8816 - Unable to instantiate AttributeConverter: root cause of exception hidden
This commit is contained in:
parent
9d0af62385
commit
414a0fbb24
|
@ -106,6 +106,7 @@ public class MetadataSources {
|
||||||
private LinkedHashSet<Class<?>> annotatedClasses = new LinkedHashSet<Class<?>>();
|
private LinkedHashSet<Class<?>> annotatedClasses = new LinkedHashSet<Class<?>>();
|
||||||
private LinkedHashSet<String> annotatedClassNames = new LinkedHashSet<String>();
|
private LinkedHashSet<String> annotatedClassNames = new LinkedHashSet<String>();
|
||||||
private LinkedHashSet<String> annotatedPackages = new LinkedHashSet<String>();
|
private LinkedHashSet<String> annotatedPackages = new LinkedHashSet<String>();
|
||||||
|
|
||||||
private List<Class<? extends AttributeConverter>> converterClasses;
|
private List<Class<? extends AttributeConverter>> converterClasses;
|
||||||
|
|
||||||
private boolean hasOrmXmlJaxbRoots;
|
private boolean hasOrmXmlJaxbRoots;
|
||||||
|
@ -298,6 +299,13 @@ public class MetadataSources {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds an AttributeConverter by class.
|
||||||
|
*
|
||||||
|
* @param converterClass The AttributeConverter class.
|
||||||
|
*
|
||||||
|
* @return this (for method chaining purposes)
|
||||||
|
*/
|
||||||
public MetadataSources addAttributeConverter(Class<? extends AttributeConverter> converterClass) {
|
public MetadataSources addAttributeConverter(Class<? extends AttributeConverter> converterClass) {
|
||||||
if ( converterClasses == null ) {
|
if ( converterClasses == null ) {
|
||||||
converterClasses = new ArrayList<Class<? extends AttributeConverter>>();
|
converterClasses = new ArrayList<Class<? extends AttributeConverter>>();
|
||||||
|
|
Loading…
Reference in New Issue