Skip to content

Commit

Permalink
Fix sequence generator
Browse files Browse the repository at this point in the history
  • Loading branch information
carlesarnal committed Jan 18, 2024
1 parent 8462ea0 commit 8406737
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@
public class CustomerEntity extends PanacheEntityBase {

@Id
@GeneratedValue(generator = "customer_id_seq_generator", strategy = GenerationType.SEQUENCE)
@SequenceGenerator(name = "customer_id_seq_generator", sequenceName = "customers_id_seq")
@SequenceGenerator(
name = "customer_id_seq_generator",
sequenceName = "customers_id_seq",
allocationSize = 1,
initialValue = 1005)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "customer_id_seq_generator")
public Long id;

@Column(name = "first_name")
Expand Down

0 comments on commit 8406737

Please sign in to comment.