From 559e9e11bf9058909743ca751334897a016b2fa3 Mon Sep 17 00:00:00 2001 From: Angel Montenegro Date: Mon, 12 Aug 2024 17:19:08 -0600 Subject: [PATCH] Fix sequence for profile email domains (#7066) * Deactivated records should get 409 on GET requests * Sequence should start at 100000 * Fix sequence name in the profile email domain entity id --- .../persistence/jpa/entities/ProfileEmailDomainEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orcid-persistence/src/main/java/org/orcid/persistence/jpa/entities/ProfileEmailDomainEntity.java b/orcid-persistence/src/main/java/org/orcid/persistence/jpa/entities/ProfileEmailDomainEntity.java index 00d53d26cba..c1c9853e6a7 100644 --- a/orcid-persistence/src/main/java/org/orcid/persistence/jpa/entities/ProfileEmailDomainEntity.java +++ b/orcid-persistence/src/main/java/org/orcid/persistence/jpa/entities/ProfileEmailDomainEntity.java @@ -19,7 +19,7 @@ public class ProfileEmailDomainEntity extends BaseEntity { @Id @Column(name = "id") - @GeneratedValue(strategy = GenerationType.AUTO, generator = "event_seq") + @GeneratedValue(strategy = GenerationType.AUTO, generator = "profile_email_domain_seq") @SequenceGenerator(name = "profile_email_domain_seq", sequenceName = "profile_email_domain_seq", allocationSize = 1) public Long getId() { return id;