diff --git a/src/main/java/com/xit/biz/ctgy/entity/MinCivBoard680.java b/src/main/java/com/xit/biz/ctgy/entity/MinCivBoard680.java index 650ccbc..1999574 100644 --- a/src/main/java/com/xit/biz/ctgy/entity/MinCivBoard680.java +++ b/src/main/java/com/xit/biz/ctgy/entity/MinCivBoard680.java @@ -5,13 +5,15 @@ import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.*; +import java.io.Serializable; @Schema(name = "MinCivBoard680", description = "게시판") @NoArgsConstructor @Data @Entity @Table(name = "min_civ_board680", schema = "", catalog = "") -public class MinCivBoard680 { +public class MinCivBoard680 implements Serializable { + private static final long SerialVersionUID = 1L; @Id private Long id; diff --git a/src/main/java/com/xit/biz/ctgy/entity/MinInfoBoard680.java b/src/main/java/com/xit/biz/ctgy/entity/MinInfoBoard680.java index 444ef90..0ab1f99 100644 --- a/src/main/java/com/xit/biz/ctgy/entity/MinInfoBoard680.java +++ b/src/main/java/com/xit/biz/ctgy/entity/MinInfoBoard680.java @@ -5,13 +5,15 @@ import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.*; +import java.io.Serializable; @Schema(name = "MinInfoBoard680", description = "공지사항") @NoArgsConstructor @Data @Entity @Table(name = "min_info_board680", schema = "", catalog = "") -public class MinInfoBoard680 { +public class MinInfoBoard680 implements Serializable { + private static final long SerialVersionUID = 1L; @Id private Long id; diff --git a/src/main/java/com/xit/biz/ctgy/entity/MinMaincode.java b/src/main/java/com/xit/biz/ctgy/entity/MinMaincode.java index 18a5640..d7e64d5 100644 --- a/src/main/java/com/xit/biz/ctgy/entity/MinMaincode.java +++ b/src/main/java/com/xit/biz/ctgy/entity/MinMaincode.java @@ -1,33 +1,55 @@ package com.xit.biz.ctgy.entity; +import com.xit.biz.cmm.entity.ids.CmmCodeLIds; +import com.xit.biz.ctgy.entity.ids.MinMaincodePK; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.*; +import java.io.Serializable; @Schema(name = "MinMaincode", description = "코드") @NoArgsConstructor @Data @Entity -@Table(name = "MIN_MAINCODE", schema = "", catalog = "") -public class MinMaincode { +@Table(name = "min_maincode", schema = "", catalog = "") +@IdClass(MinMaincodePK.class) +public class MinMaincode implements Serializable { + private static final long SerialVersionUID = 1L; - @Id - private Long id; - @Schema(required = true, title = "코드1", example = " ", description = "Input Description...") - @Column(name = "c1", nullable = false) + @Schema(required = true, title = "", example = " ", description = " ") + @Column(name = "c1", nullable = false, length = 8) + @Id private String c1; - @Schema(required = true, title = "코드2", example = " ", description = "Input Description...") - @Column(name = "c2", nullable = false) + @Schema(required = true, title = "", example = " ", description = " ") + @Column(name = "c2", nullable = false, length = 8) + @Id private String c2; - @Schema(required = false, title = "코드3", example = " ", description = "Input Description...") - @Column(name = "c3", nullable = true) + @Schema(required = true, title = "", example = " ", description = " ") + @Column(name = "c3", nullable = false, length = 8) + @Id private String c3; + +// @Id +// private Long id; +// +// @Schema(required = true, title = "코드1", example = " ", description = "Input Description...") +// @Column(name = "c1", nullable = false) +// private String c1; +// +// @Schema(required = true, title = "코드2", example = " ", description = "Input Description...") +// @Column(name = "c2", nullable = false) +// private String c2; +// +// @Schema(required = false, title = "코드3", example = " ", description = "Input Description...") +// @Column(name = "c3", nullable = true) +// private String c3; + @Schema(required = false, title = "코드명", example = " ", description = "Input Description...") @Column(name = "cdname", nullable = true) private String cdname; diff --git a/src/main/java/com/xit/biz/ctgy/entity/MinSimsa680.java b/src/main/java/com/xit/biz/ctgy/entity/MinSimsa680.java index e3a8b7b..47d049e 100644 --- a/src/main/java/com/xit/biz/ctgy/entity/MinSimsa680.java +++ b/src/main/java/com/xit/biz/ctgy/entity/MinSimsa680.java @@ -8,6 +8,7 @@ import lombok.Generated; import lombok.NoArgsConstructor; import javax.persistence.*; +import java.io.Serializable; import java.util.HashSet; import java.util.Set; @@ -16,7 +17,8 @@ import java.util.Set; @Data @Entity @Table(name = "min_simsa680", schema = "", catalog = "") -public class MinSimsa680 { +public class MinSimsa680 implements Serializable { + private static final long SerialVersionUID = 1L; @Schema(required = true, title = "민원코드", example = " ", description = "Input Description...") @Id 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 05a97dc..44d9637 100644 --- a/src/main/java/com/xit/biz/ctgy/entity/MinSimsaUser680.java +++ b/src/main/java/com/xit/biz/ctgy/entity/MinSimsaUser680.java @@ -6,13 +6,15 @@ import lombok.Getter; import lombok.NoArgsConstructor; import javax.persistence.*; +import java.io.Serializable; @Schema(name = "MinSimsaUser680", description = "민원심사사용자매핑") @NoArgsConstructor @Data @Entity @Table(name = "min_simsa_user680", schema = "", catalog = "") -public class MinSimsaUser680 { +public class MinSimsaUser680 implements Serializable { + private static final long SerialVersionUID = 1L; @Id private Long id; diff --git a/src/main/java/com/xit/biz/ctgy/entity/MinUserinfo.java b/src/main/java/com/xit/biz/ctgy/entity/MinUserinfo.java index b88b05f..4e682dc 100644 --- a/src/main/java/com/xit/biz/ctgy/entity/MinUserinfo.java +++ b/src/main/java/com/xit/biz/ctgy/entity/MinUserinfo.java @@ -5,13 +5,15 @@ import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.*; +import java.io.Serializable; @Schema(name = "MinUserinfo", description = "null") @NoArgsConstructor @Data @Entity @Table(name = "min_userinfo", schema = "", catalog = "") -public class MinUserinfo { +public class MinUserinfo implements Serializable { + private static final long SerialVersionUID = 1L; @Id @Schema(required = true, title = "민원심사사용자코드", example = " ", description = "Input Description...") diff --git a/src/main/java/com/xit/biz/ctgy/entity/Tf680Main.java b/src/main/java/com/xit/biz/ctgy/entity/Tf680Main.java index 38afddd..323b83d 100644 --- a/src/main/java/com/xit/biz/ctgy/entity/Tf680Main.java +++ b/src/main/java/com/xit/biz/ctgy/entity/Tf680Main.java @@ -5,13 +5,15 @@ import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.*; +import java.io.Serializable; @Schema(name = "Tf680Main", description = "메인") @NoArgsConstructor @Data @Entity @Table(name = "tf680_main", schema = "", catalog = "") -public class Tf680Main { +public class Tf680Main implements Serializable { + private static final long SerialVersionUID = 1L; @Id @Schema(required = true, title = "메인코드", example = " ", description = "Input Description...") diff --git a/src/main/java/com/xit/biz/ctgy/entity/Tf680Recall.java b/src/main/java/com/xit/biz/ctgy/entity/Tf680Recall.java index 194b180..f88111c 100644 --- a/src/main/java/com/xit/biz/ctgy/entity/Tf680Recall.java +++ b/src/main/java/com/xit/biz/ctgy/entity/Tf680Recall.java @@ -5,13 +5,15 @@ import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.*; +import java.io.Serializable; @Schema(name = "Tf680Recall", description = "민원") @NoArgsConstructor @Data @Entity @Table(name = "tf680_recall", schema = "", catalog = "") -public class Tf680Recall { +public class Tf680Recall implements Serializable { + private static final long SerialVersionUID = 1L; @Id @Schema(required = true, title = "민원코드", example = " ", description = "Input Description...") diff --git a/src/main/java/com/xit/biz/ctgy/entity/ids/MinMaincodePK.java b/src/main/java/com/xit/biz/ctgy/entity/ids/MinMaincodePK.java new file mode 100644 index 0000000..59076e3 --- /dev/null +++ b/src/main/java/com/xit/biz/ctgy/entity/ids/MinMaincodePK.java @@ -0,0 +1,27 @@ +package com.xit.biz.ctgy.entity.ids; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.*; + +import javax.persistence.Column; +import java.io.Serializable; + +@Getter +@Setter +@EqualsAndHashCode +@NoArgsConstructor +public class MinMaincodePK implements Serializable { + private static final long SerialVersionUID = 1L; + + @Schema(required = true, title = "", example = " ", description = " ") + @Column(name = "c1", nullable = false, length = 8) + private String c1; + + @Schema(required = true, title = "", example = " ", description = " ") + @Column(name = "c2", nullable = false, length = 8) + private String c2; + + @Schema(required = true, title = "", example = " ", description = " ") + @Column(name = "c3", nullable = false, length = 8) + private String c3; +}