Apparently hibernate looks for sequence tables for generating the id. Setting the following:
@GeneratedValue(strategy = GenerationType.IDENTITY)
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.
把主键字段上的注解写成如上即可