mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
Verify array support: Make PluralAttributeBuilder also recognize array types
Signed-off-by: Koen Aers <koen.aers@gmail.com>
This commit is contained in:
parent
9d9a240917
commit
86fa0d5fed
@ -134,7 +134,8 @@ private static SimpleDomainType<?> determineListIndexOrMapKeyType(
|
||||
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 );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user