refactor: entity serialization 및 MinMaincode ids 적용

dev
Lim Jonguk 3 years ago
parent 644678b9ec
commit 752a8d8b36

@ -5,13 +5,15 @@ import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable;
@Schema(name = "MinCivBoard680", description = "게시판") @Schema(name = "MinCivBoard680", description = "게시판")
@NoArgsConstructor @NoArgsConstructor
@Data @Data
@Entity @Entity
@Table(name = "min_civ_board680", schema = "", catalog = "") @Table(name = "min_civ_board680", schema = "", catalog = "")
public class MinCivBoard680 { public class MinCivBoard680 implements Serializable {
private static final long SerialVersionUID = 1L;
@Id @Id
private Long id; private Long id;

@ -5,13 +5,15 @@ import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable;
@Schema(name = "MinInfoBoard680", description = "공지사항") @Schema(name = "MinInfoBoard680", description = "공지사항")
@NoArgsConstructor @NoArgsConstructor
@Data @Data
@Entity @Entity
@Table(name = "min_info_board680", schema = "", catalog = "") @Table(name = "min_info_board680", schema = "", catalog = "")
public class MinInfoBoard680 { public class MinInfoBoard680 implements Serializable {
private static final long SerialVersionUID = 1L;
@Id @Id
private Long id; private Long id;

@ -1,33 +1,55 @@
package com.xit.biz.ctgy.entity; 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 io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable;
@Schema(name = "MinMaincode", description = "코드") @Schema(name = "MinMaincode", description = "코드")
@NoArgsConstructor @NoArgsConstructor
@Data @Data
@Entity @Entity
@Table(name = "MIN_MAINCODE", schema = "", catalog = "") @Table(name = "min_maincode", schema = "", catalog = "")
public class MinMaincode { @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...") @Schema(required = true, title = "", example = " ", description = " ")
@Column(name = "c1", nullable = false) @Column(name = "c1", nullable = false, length = 8)
@Id
private String c1; private String c1;
@Schema(required = true, title = "코드2", example = " ", description = "Input Description...") @Schema(required = true, title = "", example = " ", description = " ")
@Column(name = "c2", nullable = false) @Column(name = "c2", nullable = false, length = 8)
@Id
private String c2; private String c2;
@Schema(required = false, title = "코드3", example = " ", description = "Input Description...") @Schema(required = true, title = "", example = " ", description = " ")
@Column(name = "c3", nullable = true) @Column(name = "c3", nullable = false, length = 8)
@Id
private String c3; 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...") @Schema(required = false, title = "코드명", example = " ", description = "Input Description...")
@Column(name = "cdname", nullable = true) @Column(name = "cdname", nullable = true)
private String cdname; private String cdname;

@ -8,6 +8,7 @@ import lombok.Generated;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable;
import java.util.HashSet; import java.util.HashSet;
import java.util.Set; import java.util.Set;
@ -16,7 +17,8 @@ import java.util.Set;
@Data @Data
@Entity @Entity
@Table(name = "min_simsa680", schema = "", catalog = "") @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...") @Schema(required = true, title = "민원코드", example = " ", description = "Input Description...")
@Id @Id

@ -6,13 +6,15 @@ import lombok.Getter;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable;
@Schema(name = "MinSimsaUser680", description = "민원심사사용자매핑") @Schema(name = "MinSimsaUser680", description = "민원심사사용자매핑")
@NoArgsConstructor @NoArgsConstructor
@Data @Data
@Entity @Entity
@Table(name = "min_simsa_user680", schema = "", catalog = "") @Table(name = "min_simsa_user680", schema = "", catalog = "")
public class MinSimsaUser680 { public class MinSimsaUser680 implements Serializable {
private static final long SerialVersionUID = 1L;
@Id @Id
private Long id; private Long id;

@ -5,13 +5,15 @@ import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable;
@Schema(name = "MinUserinfo", description = "null") @Schema(name = "MinUserinfo", description = "null")
@NoArgsConstructor @NoArgsConstructor
@Data @Data
@Entity @Entity
@Table(name = "min_userinfo", schema = "", catalog = "") @Table(name = "min_userinfo", schema = "", catalog = "")
public class MinUserinfo { public class MinUserinfo implements Serializable {
private static final long SerialVersionUID = 1L;
@Id @Id
@Schema(required = true, title = "민원심사사용자코드", example = " ", description = "Input Description...") @Schema(required = true, title = "민원심사사용자코드", example = " ", description = "Input Description...")

@ -5,13 +5,15 @@ import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable;
@Schema(name = "Tf680Main", description = "메인") @Schema(name = "Tf680Main", description = "메인")
@NoArgsConstructor @NoArgsConstructor
@Data @Data
@Entity @Entity
@Table(name = "tf680_main", schema = "", catalog = "") @Table(name = "tf680_main", schema = "", catalog = "")
public class Tf680Main { public class Tf680Main implements Serializable {
private static final long SerialVersionUID = 1L;
@Id @Id
@Schema(required = true, title = "메인코드", example = " ", description = "Input Description...") @Schema(required = true, title = "메인코드", example = " ", description = "Input Description...")

@ -5,13 +5,15 @@ import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable;
@Schema(name = "Tf680Recall", description = "민원") @Schema(name = "Tf680Recall", description = "민원")
@NoArgsConstructor @NoArgsConstructor
@Data @Data
@Entity @Entity
@Table(name = "tf680_recall", schema = "", catalog = "") @Table(name = "tf680_recall", schema = "", catalog = "")
public class Tf680Recall { public class Tf680Recall implements Serializable {
private static final long SerialVersionUID = 1L;
@Id @Id
@Schema(required = true, title = "민원코드", example = " ", description = "Input Description...") @Schema(required = true, title = "민원코드", example = " ", description = "Input Description...")

@ -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;
}
Loading…
Cancel
Save