Thanks but that doesn't solve my problem, need to do it globally, I am generating schemata from XSDs and cannot modify those all the time.
Found a way however, just overwriting the Dialect and registering my own column.
Code:
package de.leibert.util;
import org.hibernate.dialect.MySQL5InnoDBDialect;
import java.sql.Types;
public class FLMysqlDialect extends MySQL5InnoDBDialect{
public FLMysqlDialect() {
super();
}
protected void registerVarcharTypes() {
registerColumnType( Types.VARCHAR, "longtext" );
registerColumnType( Types.VARCHAR, "varchar(2000)" );
}
}