diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/internal/PluralAttributeBuilder.java b/hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/internal/PluralAttributeBuilder.java index 63c621327f..063cea1799 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/internal/PluralAttributeBuilder.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/internal/PluralAttributeBuilder.java @@ -134,7 +134,8 @@ public class PluralAttributeBuilder { 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 ); }