I have two columns which will use @GeneratedValues, but when I am putting them like this it is giving error; \" Exception Description: Class [class Testing] has two @GeneratedVa
Using columnDefinition="serial" with Postgresql it works for me.
@Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(columnDefinition="serial") @Generated(GenerationTime.INSERT) private Long seqNo;