From 98d7b8e6bec4a5dbbd23f3c2d0db5b1e277d975e Mon Sep 17 00:00:00 2001 From: Lim Jonguk Date: Thu, 7 Apr 2022 03:09:32 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20jpa=20entity=20=EC=A0=81=EC=9A=A9=20=20?= =?UTF-8?q?=20=20=20=20@DynamicInsert=20=20=20=20=20=20@DynamicUpdate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/xit/biz/cmm/entity/CmmCodeGrp.java | 4 ++++ src/main/java/com/xit/biz/cmm/entity/CmmCodeL.java | 4 ++++ src/main/java/com/xit/biz/cmm/entity/CmmCodeM.java | 4 ++++ src/main/java/com/xit/biz/cmm/entity/CmmCodeS.java | 4 ++++ src/main/java/com/xit/biz/cmm/entity/CmmUser.java | 4 ++++ src/main/java/com/xit/biz/ctgy/entity/GnRecallSc.java | 4 ++++ src/main/java/com/xit/biz/ctgy/entity/MinCivBoard680.java | 4 ++++ .../java/com/xit/biz/ctgy/entity/MinInfoBoard680.java | 4 ++++ src/main/java/com/xit/biz/ctgy/entity/MinMaincode.java | 4 ++++ src/main/java/com/xit/biz/ctgy/entity/MinSimsa680.java | 4 ++++ .../java/com/xit/biz/ctgy/entity/MinSimsaUser680.java | 4 ++++ src/main/java/com/xit/biz/ctgy/entity/MinUserinfo.java | 4 ++++ src/main/java/com/xit/biz/ctgy/entity/Tf680Main.java | 4 ++++ src/main/java/com/xit/biz/ctgy/entity/Tf680Recall.java | 4 ++++ src/main/resources/config/conf.yml | 4 ++-- src/main/resources/logback-spring.xml | 8 ++++---- 16 files changed, 62 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/xit/biz/cmm/entity/CmmCodeGrp.java b/src/main/java/com/xit/biz/cmm/entity/CmmCodeGrp.java index 3cd20f4..0b8e1cd 100644 --- a/src/main/java/com/xit/biz/cmm/entity/CmmCodeGrp.java +++ b/src/main/java/com/xit/biz/cmm/entity/CmmCodeGrp.java @@ -5,6 +5,8 @@ import io.swagger.v3.oas.annotations.media.Schema; import lombok.*; import org.hibernate.Hibernate; import org.hibernate.annotations.ColumnDefault; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; import javax.persistence.Column; import javax.persistence.Entity; @@ -20,6 +22,8 @@ import java.util.Objects; @NoArgsConstructor(access = AccessLevel.PROTECTED) @AllArgsConstructor @Builder +@DynamicInsert +@DynamicUpdate public class CmmCodeGrp extends AuditEntity implements Serializable { @Schema(required = true, title = "코드그룹ID", example = "G_CODE_SAM") diff --git a/src/main/java/com/xit/biz/cmm/entity/CmmCodeL.java b/src/main/java/com/xit/biz/cmm/entity/CmmCodeL.java index 20ec5b4..136a8ef 100644 --- a/src/main/java/com/xit/biz/cmm/entity/CmmCodeL.java +++ b/src/main/java/com/xit/biz/cmm/entity/CmmCodeL.java @@ -6,6 +6,8 @@ import io.swagger.v3.oas.annotations.media.Schema; import lombok.*; import org.hibernate.Hibernate; import org.hibernate.annotations.ColumnDefault; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; import javax.persistence.*; import java.io.Serializable; @@ -19,6 +21,8 @@ import java.util.Objects; @AllArgsConstructor @Builder @IdClass(CmmCodeLIds.class) +@DynamicInsert +@DynamicUpdate public class CmmCodeL extends AuditEntity implements Serializable { @Schema(required = true, title = "코드그룹ID", example = "G_CODE_SAM", description = "공통코드그룹ID") diff --git a/src/main/java/com/xit/biz/cmm/entity/CmmCodeM.java b/src/main/java/com/xit/biz/cmm/entity/CmmCodeM.java index 7b4a798..3c15d9a 100644 --- a/src/main/java/com/xit/biz/cmm/entity/CmmCodeM.java +++ b/src/main/java/com/xit/biz/cmm/entity/CmmCodeM.java @@ -5,6 +5,8 @@ import com.xit.core.support.jpa.AuditEntity; import io.swagger.v3.oas.annotations.media.Schema; import lombok.*; import org.hibernate.Hibernate; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; import javax.persistence.*; import java.io.Serializable; @@ -18,6 +20,8 @@ import java.util.Objects; @AllArgsConstructor @Builder @IdClass(CmmCodeMIds.class) +@DynamicInsert +@DynamicUpdate public class CmmCodeM extends AuditEntity implements Serializable { @Schema(required = true, title = "코드그룹ID", example = "G_CODE_SAM", description = "공통코드그룹ID") diff --git a/src/main/java/com/xit/biz/cmm/entity/CmmCodeS.java b/src/main/java/com/xit/biz/cmm/entity/CmmCodeS.java index 563247b..914ad92 100644 --- a/src/main/java/com/xit/biz/cmm/entity/CmmCodeS.java +++ b/src/main/java/com/xit/biz/cmm/entity/CmmCodeS.java @@ -6,6 +6,8 @@ import io.swagger.v3.oas.annotations.media.Schema; import lombok.*; import org.hibernate.Hibernate; import org.hibernate.annotations.ColumnDefault; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; import javax.persistence.*; import java.io.Serializable; @@ -19,6 +21,8 @@ import java.util.Objects; @AllArgsConstructor @Builder @IdClass(CmmCodeSIds.class) +@DynamicInsert +@DynamicUpdate public class CmmCodeS extends AuditEntity implements Serializable { @Schema(required = true, title = "코드그룹ID", example = "G_CODE_SAM", description = "공통코드그룹ID") diff --git a/src/main/java/com/xit/biz/cmm/entity/CmmUser.java b/src/main/java/com/xit/biz/cmm/entity/CmmUser.java index 3b3043f..c64e681 100644 --- a/src/main/java/com/xit/biz/cmm/entity/CmmUser.java +++ b/src/main/java/com/xit/biz/cmm/entity/CmmUser.java @@ -7,6 +7,8 @@ import com.xit.core.support.jpa.AuditEntity; import io.swagger.v3.oas.annotations.media.Schema; import lombok.*; import org.hibernate.Hibernate; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; import javax.persistence.*; import javax.validation.constraints.NotNull; @@ -27,6 +29,8 @@ import java.util.Objects; @NoArgsConstructor @AllArgsConstructor @Builder +@DynamicInsert +@DynamicUpdate public class CmmUser extends AuditEntity implements Serializable { //extends RepresentationModel implements Serializable { private static final long SerialVersionUID = 1L; diff --git a/src/main/java/com/xit/biz/ctgy/entity/GnRecallSc.java b/src/main/java/com/xit/biz/ctgy/entity/GnRecallSc.java index 000249f..3691961 100644 --- a/src/main/java/com/xit/biz/ctgy/entity/GnRecallSc.java +++ b/src/main/java/com/xit/biz/ctgy/entity/GnRecallSc.java @@ -6,6 +6,8 @@ import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; import javax.persistence.*; import java.util.Objects; @@ -22,6 +24,8 @@ import java.util.Objects; @NoArgsConstructor @AllArgsConstructor @Builder +@DynamicInsert +@DynamicUpdate public class GnRecallSc { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "RECALL_SC_SEQ_GEN") 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 d39e9a3..13534f0 100644 --- a/src/main/java/com/xit/biz/ctgy/entity/MinCivBoard680.java +++ b/src/main/java/com/xit/biz/ctgy/entity/MinCivBoard680.java @@ -3,6 +3,8 @@ package com.xit.biz.ctgy.entity; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import lombok.NoArgsConstructor; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; import javax.persistence.*; import java.io.Serializable; @@ -12,6 +14,8 @@ import java.io.Serializable; @Data @Entity @Table(name = "min_civ_board680", schema = "", catalog = "") +@DynamicInsert +@DynamicUpdate public class MinCivBoard680 implements Serializable { private static final long SerialVersionUID = 1L; 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 292c6e2..30b672c 100644 --- a/src/main/java/com/xit/biz/ctgy/entity/MinInfoBoard680.java +++ b/src/main/java/com/xit/biz/ctgy/entity/MinInfoBoard680.java @@ -3,6 +3,8 @@ package com.xit.biz.ctgy.entity; import com.xit.core.oauth2.utils.HeaderUtil; import io.swagger.v3.oas.annotations.media.Schema; import lombok.*; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; import javax.persistence.*; import java.io.Serializable; @@ -17,6 +19,8 @@ import java.time.format.DateTimeFormatter; @Getter @Setter @Builder +@DynamicInsert +@DynamicUpdate public class MinInfoBoard680 implements Serializable { private static final long SerialVersionUID = 1L; 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 d7e64d5..5eed5f9 100644 --- a/src/main/java/com/xit/biz/ctgy/entity/MinMaincode.java +++ b/src/main/java/com/xit/biz/ctgy/entity/MinMaincode.java @@ -5,6 +5,8 @@ import com.xit.biz.ctgy.entity.ids.MinMaincodePK; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import lombok.NoArgsConstructor; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; import javax.persistence.*; import java.io.Serializable; @@ -15,6 +17,8 @@ import java.io.Serializable; @Entity @Table(name = "min_maincode", schema = "", catalog = "") @IdClass(MinMaincodePK.class) +@DynamicInsert +@DynamicUpdate public class MinMaincode implements Serializable { private static final long SerialVersionUID = 1L; 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 a8476da..c3c6307 100644 --- a/src/main/java/com/xit/biz/ctgy/entity/MinSimsa680.java +++ b/src/main/java/com/xit/biz/ctgy/entity/MinSimsa680.java @@ -2,6 +2,8 @@ package com.xit.biz.ctgy.entity; import io.swagger.v3.oas.annotations.media.Schema; import lombok.*; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; import javax.persistence.*; @@ -12,6 +14,8 @@ import javax.persistence.*; @NoArgsConstructor @AllArgsConstructor @Builder +@DynamicInsert +@DynamicUpdate public class MinSimsa680 { //implements Serializable { //private static final long SerialVersionUID = 1L; 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 d0f3f56..3a514f6 100644 --- a/src/main/java/com/xit/biz/ctgy/entity/MinSimsaUser680.java +++ b/src/main/java/com/xit/biz/ctgy/entity/MinSimsaUser680.java @@ -2,6 +2,8 @@ package com.xit.biz.ctgy.entity; import io.swagger.v3.oas.annotations.media.Schema; import lombok.*; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; import javax.persistence.*; import java.io.Serializable; @@ -18,6 +20,8 @@ import java.io.Serializable; @NoArgsConstructor @AllArgsConstructor @Builder +@DynamicInsert +@DynamicUpdate public class MinSimsaUser680 implements Serializable { private static final long SerialVersionUID = 1L; 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 d21d23b..71d453a 100644 --- a/src/main/java/com/xit/biz/ctgy/entity/MinUserinfo.java +++ b/src/main/java/com/xit/biz/ctgy/entity/MinUserinfo.java @@ -3,6 +3,8 @@ package com.xit.biz.ctgy.entity; import com.fasterxml.jackson.annotation.JsonIgnore; import io.swagger.v3.oas.annotations.media.Schema; import lombok.*; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; import javax.persistence.*; import java.io.Serializable; @@ -17,6 +19,8 @@ import java.util.Set; @NoArgsConstructor @AllArgsConstructor @Builder +@DynamicInsert +@DynamicUpdate public class MinUserinfo implements Serializable { private static final long SerialVersionUID = 1L; 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 323b83d..4f71440 100644 --- a/src/main/java/com/xit/biz/ctgy/entity/Tf680Main.java +++ b/src/main/java/com/xit/biz/ctgy/entity/Tf680Main.java @@ -3,6 +3,8 @@ package com.xit.biz.ctgy.entity; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import lombok.NoArgsConstructor; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; import javax.persistence.*; import java.io.Serializable; @@ -12,6 +14,8 @@ import java.io.Serializable; @Data @Entity @Table(name = "tf680_main", schema = "", catalog = "") +@DynamicInsert +@DynamicUpdate public class Tf680Main implements Serializable { private static final long SerialVersionUID = 1L; 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 c98c179..04f6023 100644 --- a/src/main/java/com/xit/biz/ctgy/entity/Tf680Recall.java +++ b/src/main/java/com/xit/biz/ctgy/entity/Tf680Recall.java @@ -3,6 +3,8 @@ package com.xit.biz.ctgy.entity; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import lombok.NoArgsConstructor; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; import javax.persistence.*; import java.io.Serializable; @@ -12,6 +14,8 @@ import java.io.Serializable; @Data @Entity @Table(name = "tf680_recall", schema = "", catalog = "") +@DynamicInsert +@DynamicUpdate public class Tf680Recall implements Serializable { private static final long SerialVersionUID = 1L; diff --git a/src/main/resources/config/conf.yml b/src/main/resources/config/conf.yml index 538d278..2dfefd0 100644 --- a/src/main/resources/config/conf.yml +++ b/src/main/resources/config/conf.yml @@ -17,8 +17,8 @@ api: file: cmm: upload: - root: c:/data/file/upload -# root: /Users/minuk/data/file/upload +# root: c:/data/file/upload + root: /Users/minuk/data/file/upload # 공지사항 path: /kangnamSIM/simUpFile publicPath: simUpFile #/kangnamSIM/simUpFile diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml index d454a44..a71d808 100644 --- a/src/main/resources/logback-spring.xml +++ b/src/main/resources/logback-spring.xml @@ -4,12 +4,12 @@ - - + + - - + +