title: How can I force Hibernate to generate sequences with custom increment
body: <p>I am using Hibernate 4.3.8 with JPA 2.1 and autogenerated ID's via sequencies by:</p>
  
  <pre><code>  @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "t_gen")
    @SequenceGenerator(name = "t_gen", sequenceName = "T_SEQ", initialValue = 1, allocationSize = 50)
    private long id;
  </code></pre>
  
  <p>Unfortunatelly the Hibernate generates for ORACLE the following DDL:</p>
  
  <pre><code>create sequence T_SEQ;
  </code></pre>
  
  <p>But I need increment by 50, see <a href="https://stackoverflow.com/questions/29607648/how-can-i-force-positive-auto-generated-hibernate-primary-keys">How can I force positive auto generated hibernate primary keys</a> . How can I achieve this ?</p>
  
  <p>EDIT:
  I need to force Hibernate to generate such sequence with custom autoincrement in it's generated DDL.</p>