hibernate version: 2.1.1
I see in class net.sf.hibernate.mapping.Column:
Code:
private static final int DEFAULT_PROPERTY_LENGTH = 255;
private int length=DEFAULT_PROPERTY_LENGTH;
A negative side effect of this is that in the schema export, it is not possible to create hibernate mappings that generate ddl in which the length is not specified.
Would it be an idea change that to ...
Code:
private static final int DEFAULT_PROPERTY_LENGTH = -1;
private int length=DEFAULT_PROPERTY_LENGTH;
so that no length specification is generated when the schema is exported...
Regards, Tom.