mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-22 11:06:08 +00:00
HHH-7702 Add support for collections of (aggregated) composite elements
This commit is contained in:
parent
36120a0a84
commit
233c602bd9
@ -528,7 +528,8 @@ private void indexClass(Class clazz, Indexer indexer, Set<Class<?>> processedCla
|
||||
if ( fieldClass.isArray() ) {
|
||||
fieldClass = fieldClass.getComponentType();
|
||||
}
|
||||
else if ( Collection.class.isAssignableFrom( fieldClass ) ) {
|
||||
else if ( Collection.class.isAssignableFrom( fieldClass )
|
||||
&& declaredField.getGenericType() instanceof ParameterizedType ) {
|
||||
ParameterizedType listType = (ParameterizedType) declaredField.getGenericType();
|
||||
fieldClass = (Class<?>) listType.getActualTypeArguments()[0];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user