From 6541730a26efa05dd7de17f0297678e5a4e9e565 Mon Sep 17 00:00:00 2001 From: Carles Arnal Date: Thu, 29 Feb 2024 08:58:18 +0100 Subject: [PATCH] Restore customers sequence --- .../registry/probe/persistence/CustomerEntity.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/apicurio/registry/probe/persistence/CustomerEntity.java b/src/main/java/io/apicurio/registry/probe/persistence/CustomerEntity.java index fb89459..2b7dc24 100644 --- a/src/main/java/io/apicurio/registry/probe/persistence/CustomerEntity.java +++ b/src/main/java/io/apicurio/registry/probe/persistence/CustomerEntity.java @@ -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")