mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
HHH-7650 JandexHelper cannot handle Class default values
This commit is contained in:
parent
78060d8eac
commit
04b4383e39
@ -360,6 +360,12 @@ private static Object getDefaultValue(AnnotationInstance annotation, String elem
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
val = Index.class.getClassLoader().loadClass( name ).getMethod( element ).getDefaultValue();
|
val = Index.class.getClassLoader().loadClass( name ).getMethod( element ).getDefaultValue();
|
||||||
|
if ( val != null ) {
|
||||||
|
// Annotation parameters of type Class are handled using Strings
|
||||||
|
if ( val instanceof Class ) {
|
||||||
|
val = ( ( Class ) val).getName();
|
||||||
|
}
|
||||||
|
}
|
||||||
DEFAULT_VALUES_BY_ELEMENT.put( fqElement, val );
|
DEFAULT_VALUES_BY_ELEMENT.put( fqElement, val );
|
||||||
return val == null ? null : val;
|
return val == null ? null : val;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user