title: Auto Increment A Column With Hibernate
body: <p>I have this situation where I need to increment a non primary key column upon insert of every new record. This column is not a primary key. However it has unique constraint. How can I use Hibernate Annotations to accomplish auto increment of this particular column? I know it can be done quite easily for primary keys, but I want exactly same thing to be done for a non primary key column (meaning without using @Id annotation?)</p>
  
  <p>--Thanks</p>