HHH-16280 Fix Jackson XML mapper support for Oracle Array data types

This commit is contained in:
Christian Beikov 2023-03-22 18:07:44 +01:00
parent ef874b2268
commit 3598ee25a9
1 changed files with 0 additions and 6 deletions

View File

@ -77,12 +77,6 @@ public final class JacksonXmlFormatMapper implements FormatMapper {
if ( javaType.getJavaType() == String.class || javaType.getJavaType() == Object.class ) {
return (String) value;
}
else if ( javaType.getJavaTypeClass().isArray() ) {
if ( javaType.getJavaTypeClass().getComponentType().isEnum() ) {
// for enum arrays we need to explicitly pass Byte[] as the writer type
return writeValueAsString( value, javaType, Byte[].class );
}
}
return writeValueAsString( value, javaType, javaType.getJavaType() );
}