title: JPA primary key auto generate
body: <p>my primary key entity look like below</p>
  
  <pre><code>@GeneratedValue(strategy= GenerationType.TABLE)
  private Long id;
  </code></pre>
  
  <p>when i run, i get error </p>
  
  <p>could not get or update next value;nested exception is org.hibernate.exception.SQLGrammerException:could not get or update next value</p>
  
  <p>but when i just change to </p>
  
  <pre><code>@GeneratedValue 
  private Long id;
  </code></pre>
  
  <p>no error throw . I want to generate unique primary key per table on <strong>oracle</strong> db . </p>