hibernate/hibernate-orm — pull request #318 by raystorm (2012-04-23 20:48:58+00:00)
Title: change the static final variables from private to protected for subclass usage

I have a case where I want to extend SQLServer2005Dialect to enable NVARCHAR usage.

like so

registerHibernateType(Types.NVARCHAR, StandardBasicTypes.STRING.getName() );
registerHibernateType(Types.LONGNVARCHAR, StandardBasicTypes.STRING.getName() );
registerHibernateType(Types.NVARCHAR, 8000, StandardBasicTypes.STRING.getName());

registerColumnType(Types.NVARCHAR, "nvarchar(MAX)");
registerColumnType(Types.LONGNVARCHAR, "nvarchar(MAX)");
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.