title: Hibernate annotation for PostgreSQL serial type
body: <p>I have a PostgreSQL table in which I have a column <code>inv_seq</code> declared as <code>serial</code>.</p>
  
  <p>I have a Hibernate bean class to map the table. All the other columns are read properly except this column. Here is the declaration in the Hibernate bean class:</p>
  
  <pre><code>....
    ....
          @GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)
          @Column(name = "inv_seq")
          public Integer getInvoiceSeq() {
              return invoiceSeq;
          }
  
           public void setInvoiceSeq(Integer invoiceSeq) {
          this.invoiceSeq = invoiceSeq;
      }
    ....
  ....
  </code></pre>
  
  <p>Is the declaration correct?<br>
  I am able to see the sequential numbers generated by the column in the database, but I am not able to access them in the java class.</p>
  
  <p>Please help.</p>