title: spring data jdbc and sequence
body: <p>I use spring data jdbc and mariadb.</p>
  <p>With spring data jpa for a sequence we can do</p>
  <pre><code>@Id
  @GeneratedValue(generator=&quot;xxxx_id_seq&quot;)
  @SequenceGenerator(name=&quot;xxxx_id_seq&quot;,sequenceName=&quot;xxxx_id_seq&quot;, allocationSize=1)
  Long id;
  </code></pre>
  <p>What is the solution for spring data jdbc?</p>