mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
HHH-16280 Fix Jackson XML mapper support for Oracle Array data types
This commit is contained in:
parent
bf03ae4a6a
commit
fff45e05ea
@ -77,12 +77,6 @@ public <T> String toString(T value, JavaType<T> javaType, WrapperOptions wrapper
|
||||
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() );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user