fix: jpa entity 적용

@DynamicInsert
     @DynamicUpdate
dev
Lim Jonguk 3 years ago
parent e88e2ed994
commit 98d7b8e6be

@ -5,6 +5,8 @@ import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*; import lombok.*;
import org.hibernate.Hibernate; import org.hibernate.Hibernate;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
@ -20,6 +22,8 @@ import java.util.Objects;
@NoArgsConstructor(access = AccessLevel.PROTECTED) @NoArgsConstructor(access = AccessLevel.PROTECTED)
@AllArgsConstructor @AllArgsConstructor
@Builder @Builder
@DynamicInsert
@DynamicUpdate
public class CmmCodeGrp extends AuditEntity implements Serializable { public class CmmCodeGrp extends AuditEntity implements Serializable {
@Schema(required = true, title = "코드그룹ID", example = "G_CODE_SAM") @Schema(required = true, title = "코드그룹ID", example = "G_CODE_SAM")

@ -6,6 +6,8 @@ import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*; import lombok.*;
import org.hibernate.Hibernate; import org.hibernate.Hibernate;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable; import java.io.Serializable;
@ -19,6 +21,8 @@ import java.util.Objects;
@AllArgsConstructor @AllArgsConstructor
@Builder @Builder
@IdClass(CmmCodeLIds.class) @IdClass(CmmCodeLIds.class)
@DynamicInsert
@DynamicUpdate
public class CmmCodeL extends AuditEntity implements Serializable { public class CmmCodeL extends AuditEntity implements Serializable {
@Schema(required = true, title = "코드그룹ID", example = "G_CODE_SAM", description = "공통코드그룹ID") @Schema(required = true, title = "코드그룹ID", example = "G_CODE_SAM", description = "공통코드그룹ID")

@ -5,6 +5,8 @@ import com.xit.core.support.jpa.AuditEntity;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*; import lombok.*;
import org.hibernate.Hibernate; import org.hibernate.Hibernate;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable; import java.io.Serializable;
@ -18,6 +20,8 @@ import java.util.Objects;
@AllArgsConstructor @AllArgsConstructor
@Builder @Builder
@IdClass(CmmCodeMIds.class) @IdClass(CmmCodeMIds.class)
@DynamicInsert
@DynamicUpdate
public class CmmCodeM extends AuditEntity implements Serializable { public class CmmCodeM extends AuditEntity implements Serializable {
@Schema(required = true, title = "코드그룹ID", example = "G_CODE_SAM", description = "공통코드그룹ID") @Schema(required = true, title = "코드그룹ID", example = "G_CODE_SAM", description = "공통코드그룹ID")

@ -6,6 +6,8 @@ import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*; import lombok.*;
import org.hibernate.Hibernate; import org.hibernate.Hibernate;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable; import java.io.Serializable;
@ -19,6 +21,8 @@ import java.util.Objects;
@AllArgsConstructor @AllArgsConstructor
@Builder @Builder
@IdClass(CmmCodeSIds.class) @IdClass(CmmCodeSIds.class)
@DynamicInsert
@DynamicUpdate
public class CmmCodeS extends AuditEntity implements Serializable { public class CmmCodeS extends AuditEntity implements Serializable {
@Schema(required = true, title = "코드그룹ID", example = "G_CODE_SAM", description = "공통코드그룹ID") @Schema(required = true, title = "코드그룹ID", example = "G_CODE_SAM", description = "공통코드그룹ID")

@ -7,6 +7,8 @@ import com.xit.core.support.jpa.AuditEntity;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*; import lombok.*;
import org.hibernate.Hibernate; import org.hibernate.Hibernate;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*; import javax.persistence.*;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
@ -27,6 +29,8 @@ import java.util.Objects;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@Builder @Builder
@DynamicInsert
@DynamicUpdate
public class CmmUser extends AuditEntity implements Serializable { //extends RepresentationModel<CmmUserEntity> implements Serializable { public class CmmUser extends AuditEntity implements Serializable { //extends RepresentationModel<CmmUserEntity> implements Serializable {
private static final long SerialVersionUID = 1L; private static final long SerialVersionUID = 1L;

@ -6,6 +6,8 @@ import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Getter; import lombok.Getter;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*; import javax.persistence.*;
import java.util.Objects; import java.util.Objects;
@ -22,6 +24,8 @@ import java.util.Objects;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@Builder @Builder
@DynamicInsert
@DynamicUpdate
public class GnRecallSc { public class GnRecallSc {
@Id @Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "RECALL_SC_SEQ_GEN") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "RECALL_SC_SEQ_GEN")

@ -3,6 +3,8 @@ package com.xit.biz.ctgy.entity;
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 org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable; import java.io.Serializable;
@ -12,6 +14,8 @@ import java.io.Serializable;
@Data @Data
@Entity @Entity
@Table(name = "min_civ_board680", schema = "", catalog = "") @Table(name = "min_civ_board680", schema = "", catalog = "")
@DynamicInsert
@DynamicUpdate
public class MinCivBoard680 implements Serializable { public class MinCivBoard680 implements Serializable {
private static final long SerialVersionUID = 1L; private static final long SerialVersionUID = 1L;

@ -3,6 +3,8 @@ package com.xit.biz.ctgy.entity;
import com.xit.core.oauth2.utils.HeaderUtil; import com.xit.core.oauth2.utils.HeaderUtil;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*; import lombok.*;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable; import java.io.Serializable;
@ -17,6 +19,8 @@ import java.time.format.DateTimeFormatter;
@Getter @Getter
@Setter @Setter
@Builder @Builder
@DynamicInsert
@DynamicUpdate
public class MinInfoBoard680 implements Serializable { public class MinInfoBoard680 implements Serializable {
private static final long SerialVersionUID = 1L; private static final long SerialVersionUID = 1L;

@ -5,6 +5,8 @@ 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 org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable; import java.io.Serializable;
@ -15,6 +17,8 @@ import java.io.Serializable;
@Entity @Entity
@Table(name = "min_maincode", schema = "", catalog = "") @Table(name = "min_maincode", schema = "", catalog = "")
@IdClass(MinMaincodePK.class) @IdClass(MinMaincodePK.class)
@DynamicInsert
@DynamicUpdate
public class MinMaincode implements Serializable { public class MinMaincode implements Serializable {
private static final long SerialVersionUID = 1L; private static final long SerialVersionUID = 1L;

@ -2,6 +2,8 @@ package com.xit.biz.ctgy.entity;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*; import lombok.*;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*; import javax.persistence.*;
@ -12,6 +14,8 @@ import javax.persistence.*;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@Builder @Builder
@DynamicInsert
@DynamicUpdate
public class MinSimsa680 { //implements Serializable { public class MinSimsa680 { //implements Serializable {
//private static final long SerialVersionUID = 1L; //private static final long SerialVersionUID = 1L;

@ -2,6 +2,8 @@ package com.xit.biz.ctgy.entity;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*; import lombok.*;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable; import java.io.Serializable;
@ -18,6 +20,8 @@ import java.io.Serializable;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@Builder @Builder
@DynamicInsert
@DynamicUpdate
public class MinSimsaUser680 implements Serializable { public class MinSimsaUser680 implements Serializable {
private static final long SerialVersionUID = 1L; private static final long SerialVersionUID = 1L;

@ -3,6 +3,8 @@ package com.xit.biz.ctgy.entity;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*; import lombok.*;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable; import java.io.Serializable;
@ -17,6 +19,8 @@ import java.util.Set;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@Builder @Builder
@DynamicInsert
@DynamicUpdate
public class MinUserinfo implements Serializable { public class MinUserinfo implements Serializable {
private static final long SerialVersionUID = 1L; private static final long SerialVersionUID = 1L;

@ -3,6 +3,8 @@ package com.xit.biz.ctgy.entity;
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 org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable; import java.io.Serializable;
@ -12,6 +14,8 @@ import java.io.Serializable;
@Data @Data
@Entity @Entity
@Table(name = "tf680_main", schema = "", catalog = "") @Table(name = "tf680_main", schema = "", catalog = "")
@DynamicInsert
@DynamicUpdate
public class Tf680Main implements Serializable { public class Tf680Main implements Serializable {
private static final long SerialVersionUID = 1L; private static final long SerialVersionUID = 1L;

@ -3,6 +3,8 @@ package com.xit.biz.ctgy.entity;
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 org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable; import java.io.Serializable;
@ -12,6 +14,8 @@ import java.io.Serializable;
@Data @Data
@Entity @Entity
@Table(name = "tf680_recall", schema = "", catalog = "") @Table(name = "tf680_recall", schema = "", catalog = "")
@DynamicInsert
@DynamicUpdate
public class Tf680Recall implements Serializable { public class Tf680Recall implements Serializable {
private static final long SerialVersionUID = 1L; private static final long SerialVersionUID = 1L;

@ -17,8 +17,8 @@ api:
file: file:
cmm: cmm:
upload: upload:
root: c:/data/file/upload # root: c:/data/file/upload
# root: /Users/minuk/data/file/upload root: /Users/minuk/data/file/upload
# 공지사항 # 공지사항
path: /kangnamSIM/simUpFile path: /kangnamSIM/simUpFile
publicPath: simUpFile #/kangnamSIM/simUpFile publicPath: simUpFile #/kangnamSIM/simUpFile

@ -4,12 +4,12 @@
<springProfile name="local"> <springProfile name="local">
<property name="LOG_PATH" value="/data/xit/logs"/> <!-- <property name="LOG_PATH" value="/data/xit/logs"/>-->
<!-- <property name="LOG_PATH" value="/Users/minuk/data/xit/logs"/>--> <property name="LOG_PATH" value="/Users/minuk/data/xit/logs"/>
</springProfile> </springProfile>
<springProfile name="dev,prod"> <springProfile name="dev,prod">
<property name="LOG_PATH" value="/data/xit/logs"/> <!-- <property name="LOG_PATH" value="/data/xit/logs"/>-->
<!-- <property name="LOG_PATH" value="/Users/minuk/data/xit/logs"/>--> <property name="LOG_PATH" value="/Users/minuk/data/xit/logs"/>
</springProfile> </springProfile>
<include resource="org/springframework/boot/logging/logback/defaults.xml"/> <include resource="org/springframework/boot/logging/logback/defaults.xml"/>

Loading…
Cancel
Save