title: Hibernate "could not get next sequence value" oracle
body: <p>i get this error <code>could not get next sequence value</code> when I try to save this Entity with Hibernate:</p>
  
  <pre><code>package beans;
  
  import javax.persistence.*;
  
  @Entity
  @Table(schema = "EVGENY")
  public class Article {
      @SequenceGenerator(name="ArticleGen", sequenceName="ARTICLESEC")
      @Id
      @GeneratedValue(generator= "ArticleGen")
      private int id;
      @Column(name="title")
      private String title;
      @Column(name="text")
      private String text;
      @Column(name="postat")
      private String postat;
      @ManyToOne
      @JoinColumn(name = "USER_ID")
      private UserAcc user;
  
      public Article(){
      }
  
      Get Set...      
  
  }
  
  insert into article (title) values('asdfaf');
  </code></pre>
  
  <p>in Oracle SQL Developer this <code>insert into article (title) values('asdfaf');</code> works well.</p>
  
  <p>if i set id variable explicitly ( <code>Article a = new Article();a.setId(3);</code> )
  everything is OK. I double checked the name of the sequence.</p>