package com.consum.model.po; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnore; import com.walker.jdbc.BasePo; /** * 表名:BASE_WAREHOUSE * * @author genrator */ @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) public class BaseWarehouse extends BasePo { // 序列化版本号 private static final long serialVersionUID = 1L; // 主键 private Long id = null; @JsonIgnore protected boolean isset_id = false; // 属性列表 private String warehouseCode = null; @JsonIgnore protected boolean isset_warehouseCode = false; private String warehouseName = null; @JsonIgnore protected boolean isset_warehouseName = false; private String adress = null; @JsonIgnore protected boolean isset_adress = false; private Long parentAgencyId = null; @JsonIgnore protected boolean isset_parentAgencyId = false; private Long agencyId = null; @JsonIgnore protected boolean isset_agencyId = false; private String agencyName = null; @JsonIgnore protected boolean isset_agencyName = false; private String classificationCode = null; @JsonIgnore protected boolean isset_classificationCode = false; private String classificationName = null; @JsonIgnore protected boolean isset_classificationName = false; private Integer isDefault = null; @JsonIgnore protected boolean isset_isDefault = false; private Integer states = null; @JsonIgnore protected boolean isset_states = false; /** * 默认构造函数 */ public BaseWarehouse() { } /** * 根据主键构造对象 */ public BaseWarehouse(Long id) { this.setId(id); } /** * 设置主键值 */ @Override public void setPkValue(Object value) { this.setId((Long) value); } public Long getId() { return this.id; } public void setId(Long id) { this.id = id; this.isset_id = true; } @JsonIgnore public boolean isEmptyId() { return this.id == null; } public String getWarehouseCode() { return this.warehouseCode; } public void setWarehouseCode(String warehouseCode) { this.warehouseCode = warehouseCode; this.isset_warehouseCode = true; } @JsonIgnore public boolean isEmptyWarehouseCode() { return this.warehouseCode == null || this.warehouseCode.length() == 0; } public String getWarehouseName() { return this.warehouseName; } public void setWarehouseName(String warehouseName) { this.warehouseName = warehouseName; this.isset_warehouseName = true; } @JsonIgnore public boolean isEmptyWarehouseName() { return this.warehouseName == null || this.warehouseName.length() == 0; } public String getAdress() { return this.adress; } public void setAdress(String adress) { this.adress = adress; this.isset_adress = true; } @JsonIgnore public boolean isEmptyAdress() { return this.adress == null || this.adress.length() == 0; } public Long getParentAgencyId() { return this.parentAgencyId; } public void setParentAgencyId(Long parentAgencyId) { this.parentAgencyId = parentAgencyId; this.isset_parentAgencyId = true; } @JsonIgnore public boolean isEmptyParentAgencyId() { return this.parentAgencyId == null; } public Long getAgencyId() { return this.agencyId; } public void setAgencyId(Long agencyId) { this.agencyId = agencyId; this.isset_agencyId = true; } @JsonIgnore public boolean isEmptyAgencyId() { return this.agencyId == null; } public String getAgencyName() { return this.agencyName; } public void setAgencyName(String agencyName) { this.agencyName = agencyName; this.isset_agencyName = true; } @JsonIgnore public boolean isEmptyAgencyName() { return this.agencyName == null || this.agencyName.length() == 0; } public String getClassificationCode() { return this.classificationCode; } public void setClassificationCode(String classificationCode) { this.classificationCode = classificationCode; this.isset_classificationCode = true; } @JsonIgnore public boolean isEmptyClassificationCode() { return this.classificationCode == null || this.classificationCode.length() == 0; } public String getClassificationName() { return this.classificationName; } public void setClassificationName(String classificationName) { this.classificationName = classificationName; this.isset_classificationName = true; } @JsonIgnore public boolean isEmptyClassificationName() { return this.classificationName == null || this.classificationName.length() == 0; } public Integer getIsDefault() { return this.isDefault; } public void setIsDefault(Integer isDefault) { this.isDefault = isDefault; this.isset_isDefault = true; } @JsonIgnore public boolean isEmptyIsDefault() { return this.isDefault == null; } public Integer getStates() { return this.states; } public void setStates(Integer states) { this.states = states; this.isset_states = true; } @JsonIgnore public boolean isEmptyStates() { return this.states == null; } /** * 重写 toString() 方法 */ @Override public String toString() { return new StringBuilder() .append("id=").append(this.id) .append("warehouseCode=").append(this.warehouseCode) .append("warehouseName=").append(this.warehouseName) .append("adress=").append(this.adress) .append("parentAgencyId=").append(this.parentAgencyId) .append("agencyId=").append(this.agencyId) .append("agencyName=").append(this.agencyName) .append("classificationCode=").append(this.classificationCode) .append("classificationName=").append(this.classificationName) .append("isDefault=").append(this.isDefault) .append("states=").append(this.states) .toString(); } /** * 克隆 */ public BaseWarehouse $clone() { BaseWarehouse base_warehouse = new BaseWarehouse(); // 数据库名称 //base_warehouse.setDatabaseName_(this.getDatabaseName_()); // 主键 if (this.isset_id) { base_warehouse.setId(this.getId()); } // 普通属性 if (this.isset_warehouseCode) { base_warehouse.setWarehouseCode(this.getWarehouseCode()); } if (this.isset_warehouseName) { base_warehouse.setWarehouseName(this.getWarehouseName()); } if (this.isset_adress) { base_warehouse.setAdress(this.getAdress()); } if (this.isset_parentAgencyId) { base_warehouse.setParentAgencyId(this.getParentAgencyId()); } if (this.isset_agencyId) { base_warehouse.setAgencyId(this.getAgencyId()); } if (this.isset_agencyName) { base_warehouse.setAgencyName(this.getAgencyName()); } if (this.isset_classificationCode) { base_warehouse.setClassificationCode(this.getClassificationCode()); } if (this.isset_classificationName) { base_warehouse.setClassificationName(this.getClassificationName()); } if (this.isset_isDefault) { base_warehouse.setIsDefault(this.getIsDefault()); } if (this.isset_states) { base_warehouse.setStates(this.getStates()); } return base_warehouse; } }