忘了给id注解了
@Id @GeneratedValue(generator = "_native") @GenericGenerator(name = "_native", strategy = "native")
加上就解决