fix: jpa entity 적용

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

@ -26,7 +26,7 @@ import java.util.Objects;
) )
@Entity @Entity
@Getter @Getter
@NoArgsConstructor @NoArgsConstructor(access = AccessLevel.PROTECTED)
@AllArgsConstructor @AllArgsConstructor
@Builder @Builder
@DynamicInsert @DynamicInsert

@ -1,10 +1,7 @@
package com.xit.biz.cmm.entity.ids; package com.xit.biz.cmm.entity.ids;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.EqualsAndHashCode; import lombok.*;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.Column; import javax.persistence.Column;
import java.io.Serializable; import java.io.Serializable;
@ -12,7 +9,7 @@ import java.io.Serializable;
@Getter @Getter
@Setter @Setter
@EqualsAndHashCode @EqualsAndHashCode
@NoArgsConstructor @NoArgsConstructor(access = AccessLevel.PROTECTED)
public class CmmCodeLIds implements Serializable { public class CmmCodeLIds implements Serializable {
@Schema(required = true, title = "코드그룹ID", example = "CODE_SAM", description = "공통코드그룹ID") @Schema(required = true, title = "코드그룹ID", example = "CODE_SAM", description = "공통코드그룹ID")

@ -1,10 +1,7 @@
package com.xit.biz.cmm.entity.ids; package com.xit.biz.cmm.entity.ids;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.EqualsAndHashCode; import lombok.*;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.Column; import javax.persistence.Column;
import java.io.Serializable; import java.io.Serializable;
@ -12,7 +9,7 @@ import java.io.Serializable;
@Getter @Getter
@Setter @Setter
@EqualsAndHashCode @EqualsAndHashCode
@NoArgsConstructor @NoArgsConstructor(access = AccessLevel.PROTECTED)
public class CmmCodeMIds implements Serializable { public class CmmCodeMIds implements Serializable {
@Schema(required = true, title = "코드그룹ID", example = "CODE_SAM", description = "공통코드그룹ID") @Schema(required = true, title = "코드그룹ID", example = "CODE_SAM", description = "공통코드그룹ID")

@ -1,10 +1,7 @@
package com.xit.biz.cmm.entity.ids; package com.xit.biz.cmm.entity.ids;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.EqualsAndHashCode; import lombok.*;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.Column; import javax.persistence.Column;
import java.io.Serializable; import java.io.Serializable;
@ -13,7 +10,7 @@ import java.io.Serializable;
@Getter @Getter
@Setter @Setter
@EqualsAndHashCode @EqualsAndHashCode
@NoArgsConstructor @NoArgsConstructor(access = AccessLevel.PROTECTED)
public class CmmCodeSIds implements Serializable { public class CmmCodeSIds implements Serializable {
@Schema(required = true, title = "코드그룹ID", example = "G_CODE_SAM", description = "공통코드그룹ID") @Schema(required = true, title = "코드그룹ID", example = "G_CODE_SAM", description = "공통코드그룹ID")

@ -2,10 +2,7 @@ package com.xit.biz.ctgy.entity;
import com.xit.biz.ctgy.CtgyConstants; import com.xit.biz.ctgy.CtgyConstants;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor; import lombok.*;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
@ -21,7 +18,7 @@ import java.util.Objects;
allocationSize = 1 // default = 50 이므로 반드시 setting 필요 allocationSize = 1 // default = 50 이므로 반드시 setting 필요
) )
@Getter @Getter
@NoArgsConstructor @NoArgsConstructor(access = AccessLevel.PROTECTED)
@AllArgsConstructor @AllArgsConstructor
@Builder @Builder
@DynamicInsert @DynamicInsert

@ -1,6 +1,7 @@
package com.xit.biz.ctgy.entity; package com.xit.biz.ctgy.entity;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AccessLevel;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
@ -10,7 +11,7 @@ import javax.persistence.*;
import java.io.Serializable; import java.io.Serializable;
@Schema(name = "MinCivBoard680", description = "게시판") @Schema(name = "MinCivBoard680", description = "게시판")
@NoArgsConstructor @NoArgsConstructor(access = AccessLevel.PROTECTED)
@Data @Data
@Entity @Entity
@Table(name = "min_civ_board680", schema = "", catalog = "") @Table(name = "min_civ_board680", schema = "", catalog = "")

@ -14,7 +14,7 @@ import java.time.format.DateTimeFormatter;
@Schema(name = "MinInfoBoard680", description = "공지사항") @Schema(name = "MinInfoBoard680", description = "공지사항")
@Table(name = "min_info_board680") @Table(name = "min_info_board680")
@Entity @Entity
@NoArgsConstructor @NoArgsConstructor(access = AccessLevel.PROTECTED)
@AllArgsConstructor @AllArgsConstructor
@Getter @Getter
@Setter @Setter

@ -3,6 +3,7 @@ package com.xit.biz.ctgy.entity;
import com.xit.biz.cmm.entity.ids.CmmCodeLIds; import com.xit.biz.cmm.entity.ids.CmmCodeLIds;
import com.xit.biz.ctgy.entity.ids.MinMaincodePK; 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.AccessLevel;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
@ -12,7 +13,7 @@ import javax.persistence.*;
import java.io.Serializable; import java.io.Serializable;
@Schema(name = "MinMaincode", description = "코드") @Schema(name = "MinMaincode", description = "코드")
@NoArgsConstructor @NoArgsConstructor(access = AccessLevel.PROTECTED)
@Data @Data
@Entity @Entity
@Table(name = "min_maincode", schema = "", catalog = "") @Table(name = "min_maincode", schema = "", catalog = "")

@ -11,7 +11,7 @@ import javax.persistence.*;
@Table(name = "min_simsa680", schema = "", catalog = "") @Table(name = "min_simsa680", schema = "", catalog = "")
@Entity @Entity
@Getter @Getter
@NoArgsConstructor @NoArgsConstructor(access = AccessLevel.PROTECTED)
@AllArgsConstructor @AllArgsConstructor
@Builder @Builder
@DynamicInsert @DynamicInsert

@ -17,7 +17,7 @@ import java.io.Serializable;
allocationSize = 1 // default = 50 이므로 반드시 setting 필요 allocationSize = 1 // default = 50 이므로 반드시 setting 필요
) )
@Getter @Getter
@NoArgsConstructor @NoArgsConstructor(access = AccessLevel.PROTECTED)
@AllArgsConstructor @AllArgsConstructor
@Builder @Builder
@DynamicInsert @DynamicInsert

@ -16,7 +16,7 @@ import java.util.Set;
@Table(name = "min_userinfo", schema = "", catalog = "") @Table(name = "min_userinfo", schema = "", catalog = "")
@Entity @Entity
@Getter @Getter
@NoArgsConstructor @NoArgsConstructor(access = AccessLevel.PROTECTED)
@AllArgsConstructor @AllArgsConstructor
@Builder @Builder
@DynamicInsert @DynamicInsert

@ -1,6 +1,7 @@
package com.xit.biz.ctgy.entity; package com.xit.biz.ctgy.entity;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AccessLevel;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
@ -10,7 +11,7 @@ import javax.persistence.*;
import java.io.Serializable; import java.io.Serializable;
@Schema(name = "Tf680Main", description = "메인") @Schema(name = "Tf680Main", description = "메인")
@NoArgsConstructor @NoArgsConstructor(access = AccessLevel.PROTECTED)
@Data @Data
@Entity @Entity
@Table(name = "tf680_main", schema = "", catalog = "") @Table(name = "tf680_main", schema = "", catalog = "")

@ -1,6 +1,7 @@
package com.xit.biz.ctgy.entity; package com.xit.biz.ctgy.entity;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AccessLevel;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
@ -10,7 +11,7 @@ import javax.persistence.*;
import java.io.Serializable; import java.io.Serializable;
@Schema(name = "Tf680Recall", description = "민원") @Schema(name = "Tf680Recall", description = "민원")
@NoArgsConstructor @NoArgsConstructor(access = AccessLevel.PROTECTED)
@Data @Data
@Entity @Entity
@Table(name = "tf680_recall", schema = "", catalog = "") @Table(name = "tf680_recall", schema = "", catalog = "")

Loading…
Cancel
Save