Skip to content

Commit

Permalink
Restore customers sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
carlesarnal committed Feb 29, 2024
1 parent cac72ae commit 6541730
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
public class CustomerEntity extends PanacheEntityBase {

@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE)
@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 6541730

Please sign in to comment.