I am using Hibernate 3.3 and PostgreSQL 8.x and would like to use Hibernate annotations to map an auto-incremented column which is NOT a primary key.
It doesn\'t ma
the accepted answer doesn't work for me.
this did though:
@Id @Column(name = "your_id", columnDefinition = "serial") @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer yourId;