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 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")

@ -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")

@ -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")

@ -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")

@ -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<CmmUserEntity> implements Serializable {
private static final long SerialVersionUID = 1L;

@ -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")

@ -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;

@ -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;

@ -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;

@ -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;

@ -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;

@ -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;

@ -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;

@ -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;

@ -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

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

Loading…
Cancel
Save