0

I'm new to postgres sql database. I'm developing a project in JAVA using postgres sql and hibernate. I cant' achieve the auto increment i.e Generated value like MySql and MSSQL server. How to implement that? Thanks in advance.

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "ID", unique = true, nullable = false)
public Integer id;
Viji
  • 1
  • 2

0 Answers0