title: ORA-00001: unique constraint violated
body: <p>I know, there are a lot of articles regarding the same issue, but still, I cannot figure it out why my code throws the above mentioned exception.</p>
  
  <p>I am using JPA for database connection.</p>
  
  <p>I have the following entity:</p>
  
  <pre><code> /**
   * Primary key.
   */
  @Id
  @Column(name = "ID")
  @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_REGISTRATION")
  @SequenceGenerator(name = "SEQ_REGISTRATION", sequenceName = "SEQ_REGISTRATION")
  private Long id;
  </code></pre>
  
  <p>As far as I know, in case of sequence generator, the default value is 50.</p>
  
  <p>And I create my DB table sequence as follows:</p>
  
  <pre><code>--------------------------------------------------------
  sequence for table REGISTRATION
  --------------------------------------------------------
  CREATE SEQUENCE "SEQ_REGISTRATION" MINVALUE 1 MAXVALUE 
  9999999999999999999999999999 INCREMENT BY 50 START WITH 1 CACHE 20 NOORDER 
  NOCYCLE;
  </code></pre>
  
  <p>I also tried to set the incrementy_by value larger, but it did not help.</p>
  
  <p>Any ide why I keep getting contraint violation exception?</p>
  
  <p>Thank you in advance!</p>