I have a case where I want to extend SQLServer2005Dialect to enable NVARCHAR usage.
registerHibernateType(Types.NVARCHAR, StandardBasicTypes.STRING.getName() );
registerHibernateType(Types.LONGNVARCHAR, StandardBasicTypes.STRING.getName() );
registerHibernateType(Types.NVARCHAR, 8000, StandardBasicTypes.STRING.getName());
registerColumnType(Types.NVARCHAR, 8000, "nvarchar($1)");
which works. however, SQLServer20005Dialect has a constant MAX_LENGTH that = 8000, it would be nice to just use the MAX_LENGTH constant in my subclass rather then copy-pasting the value.
change the static final variables from private to protected, to enabl…
…e usage in subclasses.
the _ SQLServer2005Dialect_ has changed dynamically, you may need to recreate a new pull request, sorry for the inconvenient