엔티티/테이블 공통 필드/컬럼 추가 -> REG_DT, RGTR, MDFCN_DT, MDFR

master
mjkhan21 2 years ago
parent 09785d5e6c
commit 00f1bbc860

@ -1,20 +1,15 @@
package cokr.xit.base.code; package cokr.xit.base.code;
import java.util.Date; import cokr.xit.foundation.AbstractEntity;
import cokr.xit.foundation.Assert;
/** /**
* @author mjkhan * @author mjkhan
*/ */
public class CodeCategory { public class CodeCategory extends AbstractEntity {
private String private String
id, id,
name, name,
description, description;
createdBy,
inUse;
private Date createdAt;
/**id . /**id .
* @return id * @return id
@ -57,59 +52,4 @@ public class CodeCategory {
public void setDescription(String description) { public void setDescription(String description) {
this.description = description; this.description = description;
} }
/** .
* @return
*/
public String getCreatedBy() {
return createdBy;
}
/** .
* @param createdBy
*/
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
/** .
* @return
* <ul><li>true - </li>
* <li>false - </li>
* </ul>
*/
public boolean inUse() {
return "Y".equals(getInUse());
}
/** .
* @return
* <ul><li>Y - </li>
* <li>N - </li>
* </ul>
*/
public String getInUse() {
return Assert.ifEmpty(inUse, "Y");
}
/** .
* @param inUse
*/
public void setInUse(String inUse) {
this.inUse = inUse;
}
/** .
* @return
*/
public Date getCreatedAt() {
return createdAt;
}
/** .
* @param createdAt
*/
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
} }

@ -1,21 +1,16 @@
package cokr.xit.base.code; package cokr.xit.base.code;
import java.util.Date; import cokr.xit.foundation.AbstractEntity;
import cokr.xit.foundation.Assert;
/** /**
* @author mjkhan * @author mjkhan
*/ */
public class CodeGroup { public class CodeGroup extends AbstractEntity {
private String private String
id, id,
name, name,
categoryID, categoryID,
description, description;
inUse,
createdBy;
private Date createdAt;
/** id . /** id .
* @return id * @return id
@ -73,64 +68,6 @@ public class CodeGroup {
this.description = description; this.description = description;
} }
/** .
* @return
* <ul><li>Y - </li>
* <li>N - </li>
* </ul>
*/
public String getInUse() {
return Assert.ifEmpty(inUse, "Y");
}
/** .
* @return
* <ul><li>true - </li>
* <li>false - </li>
* </ul>
*/
public boolean inUse() {
return "Y".equals(getInUse());
}
/** .
* @param inUse
* <ul><li>Y - </li>
* <li>N - </li>
* </ul>
*/
public void setInUse(String inUse) {
this.inUse = inUse;
}
/** id .
* @return id
*/
public String getCreatedBy() {
return createdBy;
}
/** id .
* @param createdBy id
*/
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
/** .
* @return
*/
public Date getCreatedAt() {
return createdAt;
}
/** .
* @param createdAt
*/
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
@Override @Override
public String toString() { public String toString() {
return String.format("%s('%s', '%s')", getClass().getSimpleName(), getId(), getName()); return String.format("%s('%s', '%s')", getClass().getSimpleName(), getId(), getName());

@ -1,13 +1,11 @@
package cokr.xit.base.code; package cokr.xit.base.code;
import java.util.Date; import cokr.xit.foundation.AbstractEntity;
import cokr.xit.foundation.Assert;
/** /**
* @author mjkhan * @author mjkhan
*/ */
public class CommonCode { public class CommonCode extends AbstractEntity {
private String private String
groupID, groupID,
code, code,
@ -15,11 +13,8 @@ public class CommonCode {
description, description,
etc1, etc1,
etc2, etc2,
etc3, etc3;
createdBy,
inUse;
private int sortOrder; private int sortOrder;
private Date createdAt;
/** id . /** id .
* @return id * @return id
@ -118,50 +113,6 @@ public class CommonCode {
this.etc3 = etc3; this.etc3 = etc3;
} }
/** id .
* @return id
*/
public String getCreatedBy() {
return createdBy;
}
/** id .
* @param createdBy id
*/
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
/** .
* @return
* <ul><li>Y - </li>
* <li>N - </li>
* </ul>
*/
public String getInUse() {
return Assert.ifEmpty(inUse, "Y");
}
/** .
* @return
* <ul><li>true - </li>
* <li>false - </li>
* </ul>
*/
public boolean inUse() {
return "Y".equals(getInUse());
}
/** .
* @param inUse
* <ul><li>Y - </li>
* <li>N - </li>
* </ul>
*/
public void setInUse(String inUse) {
this.inUse = inUse;
}
/** . /** .
* @return * @return
*/ */
@ -176,20 +127,6 @@ public class CommonCode {
this.sortOrder = sortOrder; this.sortOrder = sortOrder;
} }
/** .
* @return
*/
public Date getCreatedAt() {
return createdAt;
}
/** .
* @param createdAt
*/
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
@Override @Override
public String toString() { public String toString() {
return String.format("%s('%s', '%s', '%s')", getClass().getSimpleName(), getGroupID(), getCode(), getValue()); return String.format("%s('%s', '%s', '%s')", getClass().getSimpleName(), getGroupID(), getCode(), getValue());

@ -1,7 +1,7 @@
/** . /** .
* <p><ul><li> .<br /> * <p><ul><li> .<br />
* <img src="{@docRoot}/doc-files/code-entities.png" alt="공통코드 분류체계"/></li> * <img src="{@docRoot}/doc-files/code-entities.png" alt="공통코드 분류체계"/></li>
* <li> <a href="{@docRoot}/doc-files/xit-base-mysql.sql" target="_blank"> </a> <br /> * <li> <a href="{@docRoot}/doc-files/xit-base-mariadb.sql" target="_blank"> </a> <br />
* <img src="{@docRoot}/doc-files/code-tables.png" alt="공통코드 테이블"/></li> * <img src="{@docRoot}/doc-files/code-tables.png" alt="공통코드 테이블"/></li>
* </ul> * </ul>
* <ul><li> : xit-code-yy.mm.dd.jar</li> * <ul><li> : xit-code-yy.mm.dd.jar</li>

Loading…
Cancel
Save