Apparently hibernate looks for sequence tables for generating the id. Setting the following:
@GeneratedValue(strategy = GenerationType.IDENTITY)
1
on the id, causes it to use the underlying db’s auto increment and not try to generate the id itself, and now it works.
在主键上面添加自增策略
@GeneratedValue(strategy = GenerationType.IDENTITY)
即可完美解决