参考:
1.http://dingren.blog.51cto.com/4586729/1093242
2.http://tech.ccidnet.com/art/3539/20070717/1146833_1.html
hibernate 在查询一些大数据类型如:varchar(max)时,会报“ No Dialect mapping for JDBC type ”错误,此时需要自定义dialect
1.继承Dialect
其中SQLServerDialect是指SQLServer2000,SQLServer2008Dialect是指SQLServer2008,
SQLServer2005Dialect是指SQLServer2500,SQLServer2005Dialect继承SQLServerDialect,SQLServer2008Dialect继承SQLServer2005Dialect,在2005时,引入了ROW_NUMBER可用于分页,不然hibernate是假分页(先将top数据放到内存后,再截取)
public class MySQLServerDialect extends SQLServer2008Dialect {