As per docs org.hibernate.type.YesNoType is supposed to generate char(1) during schema2ddl generation. But the following definition generates char(255) by default for databases like H2, MySQL
@Column(name = "enabled")
@Type(type = "org.hibernate.type.YesNoType")
private Boolean enabled = Boolean.FALSE;
Adding a hardcoded value for columnDefinition as "char(1)" does create the SQL properly. What am I missing here, is there any workaround to solve this issue without using columnDefinition?