Could not execute JDBC batch update 错误信息: Exception in thread "main" org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update 原因与解决: 1.因为Hibernate Tools(或者Eclipse本身的Database Explorer)生成*.hbn.xml工具中包含有catalog="***"(*表示数据库名称)这样的属性,将该属性删除就可以了 2.该表字段名里面有hibernate保留关键字的原因,命名列的时候不要单独使用desc,date,ID...这种关键字
hibernate exception
最新推荐文章于 2020-06-02 14:03:03 发布