hbm2ddl should use char(1) for simple 'char' fields

Description

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".

Environment

None

Assignee

Unassigned

Reporter

Darryl Miles

Fix versions

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure