Schema creation validation fails on SQL Server when we set ddl-auto=validate or create-drop and globally_quoted_identifiers=true and use char( n ) column mapped to String
{code:java} @Column(columnDefinition = "char(2)", length = 2) private String myColumn; {code}
Works fine in version 5.2.10 and also works fine on H2 database with newer versions but fails on SQL Server:
org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: wrong column type encountered in column [myColumn] in table [`myTable`]; found [char (Types#CHAR)], but expecting [[char(2)] (Types#VARCHAR)] |
|