代码之家  ›  专栏  ›  技术社区  ›  robert trudel

spring数据jdbc和序列

  •  0
  • robert trudel  · 技术社区  · 3 年前

    我使用spring数据jdbc和mariadb。

    使用序列的spring数据jpa,我们可以

    @Id
    @GeneratedValue(generator="xxxx_id_seq")
    @SequenceGenerator(name="xxxx_id_seq",sequenceName="xxxx_id_seq", allocationSize=1)
    Long id;
    

    spring数据jdbc的解决方案是什么?

    0 回复  |  直到 3 年前