title: auto creation of sequence using hibernate tool
body: <p>I wanted to  to generate sequence using hibernate tool ( pojo to sql). And definitely it works fine.</p>
  
  <pre><code>@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqid-gen")
  @SequenceGenerator(name = "seqid-gen", sequenceName = "RTDS_ADSINPUT_SEQ" )
  @Column(name="id")
  public Long getId() {
      return id;
  }
  </code></pre>
  
  <p>This code generates below sql</p>
  
  <pre><code>create sequence RTDS_ADSINPUT_SEQ;
  </code></pre>
  
  <p>The problem is I wanted to specify properties like</p>
  
  <pre><code>INCREMENT BY,NOCACHE CYCLE
  </code></pre>
  
  <p>and the final ddl script should be some thing like below</p>
  
  <pre><code>CREATE SEQUENCE  RTDS_ADSINPUT_SEQ  MINVALUE 1 MAXVALUE
  999999999999999999 INCREMENT BY 1 START WITH 1 NOCACHE  ORDER  CYCLE ;
  </code></pre>
  
  <p>But as far I saw hibernate only support <code>name, sequncename,allocation,initialvalue</code></p>
  
  <p>Please advice me if I can include those properties as annotation in the pojo.</p>