From 48999de67a9de6738ad2437d1fcb778d81715f38 Mon Sep 17 00:00:00 2001 From: Lim Jonguk Date: Sat, 26 Mar 2022 07:20:56 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20SequenceGenerator=20=EC=84=A4=EC=A0=95?= =?UTF-8?q?=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/xit/biz/ctgy/entity/MinSimsaUser680.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/xit/biz/ctgy/entity/MinSimsaUser680.java b/src/main/java/com/xit/biz/ctgy/entity/MinSimsaUser680.java index 5653c3b..f7b2ef0 100644 --- a/src/main/java/com/xit/biz/ctgy/entity/MinSimsaUser680.java +++ b/src/main/java/com/xit/biz/ctgy/entity/MinSimsaUser680.java @@ -12,6 +12,11 @@ import java.util.Set; @Schema(name = "MinSimsaUser680", description = "민원심사사용자매핑") @Table(name = "min_simsa_user680", schema = "", catalog = "") @Entity +@SequenceGenerator( + name = "SIMSA_USER680_SEQ_GEN", + sequenceName = "MIN_SIMSA_USER680_SEQ", + allocationSize = 1 // default = 50 이므로 반드시 setting 필요 +) @Getter @NoArgsConstructor @AllArgsConstructor @@ -20,7 +25,7 @@ public class MinSimsaUser680 implements Serializable { private static final long SerialVersionUID = 1L; @Id - @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = " MIN_SIMSA_USER680_SEQ") + @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SIMSA_USER680_SEQ_GEN") @Schema(required = true, title = "민원심사사용자매핑코드", example = " ", description = "Input Description...") @Column(name = "msu_code", nullable = false, length = 10) private Long msuCode;