|
When using hbm2ddl into h2 on a Java property defined as "char propertyName" and with HBM entry <property name="propertyName"/> this emits an SQL column type of "propertyName char(255)".
The bug here is that the SQL should be "propertyName char(1)".
Adding into HBM type="character" does not fix the issue. Adding into HBM length="1" does fix the issue.
So this indicates the problem is auto-detecting the length of a single character as it seems to be using the logic for type="string".
|