Hi,
I can’t seem to determine a default length for the Varchar type.
In Oracle8iDialect it is defined in registerCharacterTypeMappings with a variable which is informed by @Column (length) and which takes as default Column#DEFAULT_LENGTH
How can I give it another default value than 255, if possible?
protected void registerCharacterTypeMappings() {
registerColumnType( Types.CHAR, "char(1)" );
registerColumnType( Types.VARCHAR, 4000, "varchar2($l)" );
registerColumnType( Types.VARCHAR, "long" );
}
package org.hibernate.mapping;
public class Column implements Selectable, Serializable, Cloneable {
public static final int DEFAULT_LENGTH = 255;