com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorExcepTable 'testdb.hibernate_sequence' doesn't exist
将数据保存到数据库中出错;其主键策略出现问题:
我们做如下更改:
更改前:
@Entity
@Table(name="pianorecord")
public class PianoRecord {
@Id
@GenericGenerator(name="uuid",strategy="identity")
@GeneratedValue(generator="uuid")
private...
原创
2020-03-30 22:08:24 ·
234 阅读 ·
0 评论