mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-10 05:04:52 +00:00
HHH-16670 Ensure columnDefinition has precedence over specialized type declaration
This commit is contained in:
parent
e803640978
commit
8a3b5efcef
@ -332,7 +332,7 @@ private void resolveColumn(Column column, Dialect dialect) {
|
||||
column.setSqlTypeCode( resolution.getJdbcType().getDdlTypeCode() );
|
||||
}
|
||||
|
||||
if ( resolution.getValueConverter() != null ) {
|
||||
if ( resolution.getValueConverter() != null && column.getSqlType() == null ) {
|
||||
final String declaration = resolution.getLegacyResolvedBasicType().getSpecializedTypeDeclaration(dialect);
|
||||
if ( declaration != null ) {
|
||||
column.setSpecializedTypeDeclaration( declaration );
|
||||
|
Loading…
x
Reference in New Issue
Block a user