HHH-16670 Ensure columnDefinition has precedence over specialized type declaration
This commit is contained in:
parent
e803640978
commit
8a3b5efcef
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue