org.hibernate.exception.SQLGrammarException: could not extract ResultSet

Posted 菜鸟员

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了org.hibernate.exception.SQLGrammarException: could not extract ResultSet相关的知识,希望对你有一定的参考价值。

这个故障的原因比较多:

1.如数据库中的字段和类中的字段类型不一致;

2.数据库dialect不够具体

myeclispe自动生成的是  org.hibernate.dialect.SQLServerDialect

如果连接的是SQLSERVER 2008 则可以写成org.hibernate.dialect.SQLServer2008Dialect

 

以上是关于org.hibernate.exception.SQLGrammarException: could not extract ResultSet的主要内容,如果未能解决你的问题,请参考以下文章