공통코드 misc 컬럼삭제

This commit is contained in:
2025-12-03 15:18:20 +09:00
parent ed317caf50
commit b7962388a4

View File

@@ -50,9 +50,6 @@ public class CommonCodeEntity extends CommonDateEntity {
@Column(name = "used") @Column(name = "used")
private Boolean used; private Boolean used;
@Column(name = "misc_cd")
private String miscCd;
@NotNull @NotNull
@Column(name = "deleted", nullable = false) @Column(name = "deleted", nullable = false)
private Boolean deleted = false; private Boolean deleted = false;
@@ -65,7 +62,7 @@ public class CommonCodeEntity extends CommonDateEntity {
private List<CommonCodeEntity> children = new ArrayList<>(); private List<CommonCodeEntity> children = new ArrayList<>();
public CommonCodeEntity( public CommonCodeEntity(
String code, String name, String description, Integer order, Boolean used) { String code, String name, String description, Integer order, Boolean used) {
this.code = code; this.code = code;
this.name = name; this.name = name;
this.description = description; this.description = description;
@@ -74,7 +71,7 @@ public class CommonCodeEntity extends CommonDateEntity {
} }
public CommonCodeEntity( public CommonCodeEntity(
Long id, String name, String description, Integer order, Boolean used, Boolean deleted) { Long id, String name, String description, Integer order, Boolean used, Boolean deleted) {
this.id = id; this.id = id;
this.name = name; this.name = name;
this.description = description; this.description = description;
@@ -85,16 +82,16 @@ public class CommonCodeEntity extends CommonDateEntity {
public CommonCodeDto.Basic toDto() { public CommonCodeDto.Basic toDto() {
return new CommonCodeDto.Basic( return new CommonCodeDto.Basic(
this.id, this.id,
this.code, this.code,
this.description, this.description,
this.name, this.name,
this.order, this.order,
this.used, this.used,
this.deleted, this.deleted,
this.children.stream().map(CommonCodeEntity::toDto).toList(), this.children.stream().map(CommonCodeEntity::toDto).toList(),
super.getCreatedDate(), super.getCreatedDate(),
super.getModifiedDate()); super.getModifiedDate());
} }
public void addParent(CommonCodeEntity parent) { public void addParent(CommonCodeEntity parent) {