【发布时间】:2016-01-03 06:51:36
【问题描述】:
我尝试在我的项目中使用 spring 4.2 版本将 hibernate 从 4 升级到 5。此次升级后,当我调用更新方法时,在堆栈跟踪中发现以下错误。
10:53:32,185 ERROR TableStructure:149 - could not read a hi value
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'test.hibernate_sequence' doesn't exist
我用注释更改了自动递增的 ID
@GeneratedValue(strategy=GenerationType.AUTO)
错误仍然存在。
【问题讨论】:
-
尝试在配置文件中设置 `
false