automatic sequence generator in hibernate code example
Example: Hibernate, how do we define the primary key value generation logic as auto?
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE)
private Long id;
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE)
private Long id;