package com.iplatform.model.po; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnore; import com.walker.jdbc.BasePo; /** * 表名:S_GEN_TABLE * * @author genrator */ @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) public class S_gen_table extends BasePo { // 序列化版本号 private static final long serialVersionUID = 1L; /** * 用于兼容老写法 */ @JsonIgnore public static final S_gen_table ROW_MAPPER = new S_gen_table(); // 主键 private Long table_id = null; @JsonIgnore protected boolean isset_table_id = false; // 属性列表 private String table_name = null; @JsonIgnore protected boolean isset_table_name = false; private String table_comment = null; @JsonIgnore protected boolean isset_table_comment = false; private String sub_table_name = null; @JsonIgnore protected boolean isset_sub_table_name = false; private String sub_table_fk_name = null; @JsonIgnore protected boolean isset_sub_table_fk_name = false; private String class_name = null; @JsonIgnore protected boolean isset_class_name = false; private String tpl_category = null; @JsonIgnore protected boolean isset_tpl_category = false; private String package_name = null; @JsonIgnore protected boolean isset_package_name = false; private String module_name = null; @JsonIgnore protected boolean isset_module_name = false; private String business_name = null; @JsonIgnore protected boolean isset_business_name = false; private String function_name = null; @JsonIgnore protected boolean isset_function_name = false; private String function_author = null; @JsonIgnore protected boolean isset_function_author = false; private String gen_type = null; @JsonIgnore protected boolean isset_gen_type = false; private String gen_path = null; @JsonIgnore protected boolean isset_gen_path = false; private String options = null; @JsonIgnore protected boolean isset_options = false; private String create_by = null; @JsonIgnore protected boolean isset_create_by = false; private Long create_time = null; @JsonIgnore protected boolean isset_create_time = false; private String remark = null; @JsonIgnore protected boolean isset_remark = false; /** * 默认构造函数 */ public S_gen_table() { } /** * 根据主键构造对象 */ public S_gen_table(Long table_id) { this.setTable_id(table_id); } /** * 设置主键值 */ @Override public void setPkValue(Object value) { this.setTable_id((Long) value); } public Long getTable_id() { return this.table_id; } public void setTable_id(Long table_id) { this.table_id = table_id; this.isset_table_id = true; } @JsonIgnore public boolean isEmptyTable_id() { return this.table_id == null; } public String getTable_name() { return this.table_name; } public void setTable_name(String table_name) { this.table_name = table_name; this.isset_table_name = true; } @JsonIgnore public boolean isEmptyTable_name() { return this.table_name == null || this.table_name.length() == 0; } public String getTable_comment() { return this.table_comment; } public void setTable_comment(String table_comment) { this.table_comment = table_comment; this.isset_table_comment = true; } @JsonIgnore public boolean isEmptyTable_comment() { return this.table_comment == null || this.table_comment.length() == 0; } public String getSub_table_name() { return this.sub_table_name; } public void setSub_table_name(String sub_table_name) { this.sub_table_name = sub_table_name; this.isset_sub_table_name = true; } @JsonIgnore public boolean isEmptySub_table_name() { return this.sub_table_name == null || this.sub_table_name.length() == 0; } public String getSub_table_fk_name() { return this.sub_table_fk_name; } public void setSub_table_fk_name(String sub_table_fk_name) { this.sub_table_fk_name = sub_table_fk_name; this.isset_sub_table_fk_name = true; } @JsonIgnore public boolean isEmptySub_table_fk_name() { return this.sub_table_fk_name == null || this.sub_table_fk_name.length() == 0; } public String getClass_name() { return this.class_name; } public void setClass_name(String class_name) { this.class_name = class_name; this.isset_class_name = true; } @JsonIgnore public boolean isEmptyClass_name() { return this.class_name == null || this.class_name.length() == 0; } public String getTpl_category() { return this.tpl_category; } public void setTpl_category(String tpl_category) { this.tpl_category = tpl_category; this.isset_tpl_category = true; } @JsonIgnore public boolean isEmptyTpl_category() { return this.tpl_category == null || this.tpl_category.length() == 0; } public String getPackage_name() { return this.package_name; } public void setPackage_name(String package_name) { this.package_name = package_name; this.isset_package_name = true; } @JsonIgnore public boolean isEmptyPackage_name() { return this.package_name == null || this.package_name.length() == 0; } public String getModule_name() { return this.module_name; } public void setModule_name(String module_name) { this.module_name = module_name; this.isset_module_name = true; } @JsonIgnore public boolean isEmptyModule_name() { return this.module_name == null || this.module_name.length() == 0; } public String getBusiness_name() { return this.business_name; } public void setBusiness_name(String business_name) { this.business_name = business_name; this.isset_business_name = true; } @JsonIgnore public boolean isEmptyBusiness_name() { return this.business_name == null || this.business_name.length() == 0; } public String getFunction_name() { return this.function_name; } public void setFunction_name(String function_name) { this.function_name = function_name; this.isset_function_name = true; } @JsonIgnore public boolean isEmptyFunction_name() { return this.function_name == null || this.function_name.length() == 0; } public String getFunction_author() { return this.function_author; } public void setFunction_author(String function_author) { this.function_author = function_author; this.isset_function_author = true; } @JsonIgnore public boolean isEmptyFunction_author() { return this.function_author == null || this.function_author.length() == 0; } public String getGen_type() { return this.gen_type; } public void setGen_type(String gen_type) { this.gen_type = gen_type; this.isset_gen_type = true; } @JsonIgnore public boolean isEmptyGen_type() { return this.gen_type == null || this.gen_type.length() == 0; } public String getGen_path() { return this.gen_path; } public void setGen_path(String gen_path) { this.gen_path = gen_path; this.isset_gen_path = true; } @JsonIgnore public boolean isEmptyGen_path() { return this.gen_path == null || this.gen_path.length() == 0; } public String getOptions() { return this.options; } public void setOptions(String options) { this.options = options; this.isset_options = true; } @JsonIgnore public boolean isEmptyOptions() { return this.options == null || this.options.length() == 0; } public String getCreate_by() { return this.create_by; } public void setCreate_by(String create_by) { this.create_by = create_by; this.isset_create_by = true; } @JsonIgnore public boolean isEmptyCreate_by() { return this.create_by == null || this.create_by.length() == 0; } 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; } @JsonIgnore public boolean isEmptyCreate_time() { return this.create_time == null; } public String getRemark() { return this.remark; } public void setRemark(String remark) { this.remark = remark; this.isset_remark = true; } @JsonIgnore public boolean isEmptyRemark() { return this.remark == null || this.remark.length() == 0; } /** * 重写 toString() 方法 */ @Override public String toString() { return new StringBuilder() .append("table_id=").append(this.table_id) .append("table_name=").append(this.table_name) .append("table_comment=").append(this.table_comment) .append("sub_table_name=").append(this.sub_table_name) .append("sub_table_fk_name=").append(this.sub_table_fk_name) .append("class_name=").append(this.class_name) .append("tpl_category=").append(this.tpl_category) .append("package_name=").append(this.package_name) .append("module_name=").append(this.module_name) .append("business_name=").append(this.business_name) .append("function_name=").append(this.function_name) .append("function_author=").append(this.function_author) .append("gen_type=").append(this.gen_type) .append("gen_path=").append(this.gen_path) .append("options=").append(this.options) .append("create_by=").append(this.create_by) .append("create_time=").append(this.create_time) .append("remark=").append(this.remark) .toString(); } /** * 克隆 */ public S_gen_table $clone() { S_gen_table s_gen_table = new S_gen_table(); // 数据库名称 //s_gen_table.setDatabaseName_(this.getDatabaseName_()); // 主键 if (this.isset_table_id) { s_gen_table.setTable_id(this.getTable_id()); } // 普通属性 if (this.isset_table_name) { s_gen_table.setTable_name(this.getTable_name()); } if (this.isset_table_comment) { s_gen_table.setTable_comment(this.getTable_comment()); } if (this.isset_sub_table_name) { s_gen_table.setSub_table_name(this.getSub_table_name()); } if (this.isset_sub_table_fk_name) { s_gen_table.setSub_table_fk_name(this.getSub_table_fk_name()); } if (this.isset_class_name) { s_gen_table.setClass_name(this.getClass_name()); } if (this.isset_tpl_category) { s_gen_table.setTpl_category(this.getTpl_category()); } if (this.isset_package_name) { s_gen_table.setPackage_name(this.getPackage_name()); } if (this.isset_module_name) { s_gen_table.setModule_name(this.getModule_name()); } if (this.isset_business_name) { s_gen_table.setBusiness_name(this.getBusiness_name()); } if (this.isset_function_name) { s_gen_table.setFunction_name(this.getFunction_name()); } if (this.isset_function_author) { s_gen_table.setFunction_author(this.getFunction_author()); } if (this.isset_gen_type) { s_gen_table.setGen_type(this.getGen_type()); } if (this.isset_gen_path) { s_gen_table.setGen_path(this.getGen_path()); } if (this.isset_options) { s_gen_table.setOptions(this.getOptions()); } if (this.isset_create_by) { s_gen_table.setCreate_by(this.getCreate_by()); } if (this.isset_create_time) { s_gen_table.setCreate_time(this.getCreate_time()); } if (this.isset_remark) { s_gen_table.setRemark(this.getRemark()); } return s_gen_table; } // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // ~ 以下属性手工加入,无法自动生成,因此该对象不能重建,2022-11-27 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ public String getTreeCode() { return treeCode; } public void setTreeCode(String treeCode) { this.treeCode = treeCode; } public String getTreeParentCode() { return treeParentCode; } public void setTreeParentCode(String treeParentCode) { this.treeParentCode = treeParentCode; } public String getTreeName() { return treeName; } public void setTreeName(String treeName) { this.treeName = treeName; } public String getParentMenuId() { return parentMenuId; } public void setParentMenuId(String parentMenuId) { this.parentMenuId = parentMenuId; } public String getParentMenuName() { return parentMenuName; } public void setParentMenuName(String parentMenuName) { this.parentMenuName = parentMenuName; } /** 树编码字段 */ private String treeCode; /** 树父编码字段 */ private String treeParentCode; /** 树名称字段 */ private String treeName; /** 上级菜单ID字段 */ private String parentMenuId; /** 上级菜单名称字段 */ private String parentMenuName; }