Hibernate的SQLGrammarException: could not execute statement错误

1 方言版本不对

//MySQL 5.0之后【engine = InnoDB】
org.hibernate.dialect.MySQL5InnoDBDialect

//NySQL 5.0之前【type = InnoDB】
org.hibernate.dialect.MySQLInnoDBDialect

2 表字段映射文件写错

3 数据类型转换错误

 

总之写代码要细心!!!

你可能感兴趣的:(Hibernate的SQLGrammarException: could not execute statement错误)