Verify array support: Make PluralAttributeBuilder also recognize array types

Signed-off-by: Koen Aers <koen.aers@gmail.com>
This commit is contained in:
Koen Aers 2020-02-26 16:10:29 +01:00 committed by Andrea Boriero
parent 9d9a240917
commit 86fa0d5fed
1 changed files with 2 additions and 1 deletions

View File

@ -134,7 +134,8 @@ public class PluralAttributeBuilder<D, C, E, K> {
return determineSimpleType( attributeMetadata.getMapKeyValueContext(), metadataContext );
}
if ( java.util.List.class.isAssignableFrom( attributeMetadata.getJavaType() ) ) {
if ( java.util.List.class.isAssignableFrom( attributeMetadata.getJavaType() )
|| attributeMetadata.getJavaType().isArray() ) {
return metadataContext.getTypeConfiguration().getBasicTypeRegistry().getRegisteredType( Integer.class );
}