package com.iplatform.model.po; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnore; import com.walker.jdbc.BasePo; /** * 表名:S_GROUP_DATA * * @author genrator */ @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) public class S_group_data extends BasePo { // 序列化版本号 private static final long serialVersionUID = 1L; /** * 用于兼容老写法 */ @JsonIgnore public static final S_group_data ROW_MAPPER = new S_group_data(); // 主键 private Integer id = null; @JsonIgnore protected boolean isset_id = false; // 属性列表 private Integer gid = null; @JsonIgnore protected boolean isset_gid = false; private String value = null; @JsonIgnore protected boolean isset_value = false; private Integer sort = null; @JsonIgnore protected boolean isset_sort = false; private Integer status = null; @JsonIgnore protected boolean isset_status = false; private Long create_time = null; @JsonIgnore protected boolean isset_create_time = false; private Long update_time = null; @JsonIgnore protected boolean isset_update_time = false; /** * 默认构造函数 */ public S_group_data() { } /** * 根据主键构造对象 */ public S_group_data(Integer id) { this.setId(id); } /** * 设置主键值 */ @Override public void setPkValue(Object value) { this.setId((Integer) value); } public Integer getId() { return this.id; } public void setId(Integer id) { this.id = id; this.isset_id = true; } @JsonIgnore public boolean isEmptyId() { return this.id == null; } public Integer getGid() { return this.gid; } public void setGid(Integer gid) { this.gid = gid; this.isset_gid = true; // gid, int } @JsonIgnore public boolean isEmptyGid() { return this.gid == null; } public String getValue() { return this.value; } public void setValue(String value) { this.value = value; this.isset_value = true; // value, text } @JsonIgnore public boolean isEmptyValue() { return this.value == null || this.value.length() == 0; } public Integer getSort() { return this.sort; } public void setSort(Integer sort) { this.sort = sort; this.isset_sort = true; // sort, int } @JsonIgnore public boolean isEmptySort() { return this.sort == null; } public Integer getStatus() { return this.status; } public void setStatus(Integer status) { this.status = status; this.isset_status = true; // status, int } @JsonIgnore public boolean isEmptyStatus() { return this.status == null; } public Long getCreate_time() { return this.create_time; } public void setCreate_time(Long create_time) { this.create_time = create_time; this.isset_create_time = true; // create_time, bigint } @JsonIgnore public boolean isEmptyCreate_time() { return this.create_time == null; } public Long getUpdate_time() { return this.update_time; } public void setUpdate_time(Long update_time) { this.update_time = update_time; this.isset_update_time = true; // update_time, bigint } @JsonIgnore public boolean isEmptyUpdate_time() { return this.update_time == null; } /** * 重写 toString() 方法 */ @Override public String toString() { return new StringBuilder() .append("id=").append(this.id) .append("gid=").append(this.gid) .append("value=").append(this.value) .append("sort=").append(this.sort) .append("status=").append(this.status) .append("create_time=").append(this.create_time) .append("update_time=").append(this.update_time) .toString(); } /** * 克隆 */ public S_group_data $clone() { S_group_data s_group_data = new S_group_data(); // 数据库名称 //s_group_data.setDatabaseName_(this.getDatabaseName_()); // 主键 if (this.isset_id) { s_group_data.setId(this.getId()); } // 普通属性 if (this.isset_gid) { s_group_data.setGid(this.getGid()); } if (this.isset_value) { s_group_data.setValue(this.getValue()); } if (this.isset_sort) { s_group_data.setSort(this.getSort()); } if (this.isset_status) { s_group_data.setStatus(this.getStatus()); } if (this.isset_create_time) { s_group_data.setCreate_time(this.getCreate_time()); } if (this.isset_update_time) { s_group_data.setUpdate_time(this.getUpdate_time()); } return s_group_data; } }