`
jianweicao
  • 浏览: 116883 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

nested exception is org.hibernate.exception.SQLGrammarException: could not execu

    博客分类:
  • SSH
 
阅读更多

接手开发一个程序,运行以后发现报以下的错误


exception:className=com.xxx.xxxService method=xxx exceptionMessage=could not execute query; nested exception is org.hibernate.exception.SQLGrammarException: could not execute query

 

 

 

原因:查询语句和数据库中的字段不匹配

 

解决方法:查看工程的数据库是否更新了;查看SQL或HQL语句,使之与数据库中的表保持一致。

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics