HHH-16670 Ensure columnDefinition has precedence over specialized type declaration

This commit is contained in:
Christian Beikov 2023-08-07 09:22:34 +02:00
parent e803640978
commit 8a3b5efcef
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ public class BasicValue extends SimpleValue implements JdbcTypeIndicators, Resol
column.setSqlTypeCode( resolution.getJdbcType().getDdlTypeCode() ); column.setSqlTypeCode( resolution.getJdbcType().getDdlTypeCode() );
} }
if ( resolution.getValueConverter() != null ) { if ( resolution.getValueConverter() != null && column.getSqlType() == null ) {
final String declaration = resolution.getLegacyResolvedBasicType().getSpecializedTypeDeclaration(dialect); final String declaration = resolution.getLegacyResolvedBasicType().getSpecializedTypeDeclaration(dialect);
if ( declaration != null ) { if ( declaration != null ) {
column.setSpecializedTypeDeclaration( declaration ); column.setSpecializedTypeDeclaration( declaration );