Caused by: org.hibernate.exception.SQLGrammarException: could not execute statement
at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.
java:80) ~[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'interval=600000, num=1, sch at line 1
反复查看,db 结构,列与数据类型 与 代码是否匹配,没问题呀,绝对没问题,debug数值也没问题,但是只要使用jpa save就报错,怎么回事.
最后突然想到,难道列里有mysql 关键字,排除每一列,发现interval 是mysql 的函数,换了一个列名称。数据完美插入。