package com.consum.model.po; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnore; import com.walker.jdbc.BasePo; /** * 表名:DEP_FORM_BACK_GOODS * * @author genrator */ @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) public class DepFormBackGoods extends BasePo { // 序列化版本号 private static final long serialVersionUID = 1L; // 主键 private Long id = null; @JsonIgnore protected boolean isset_id = false; // 属性列表 private Long depFormBackId = null; @JsonIgnore protected boolean isset_depFormBackId = false; private String unit = null; @JsonIgnore protected boolean isset_unit = false; private Integer backCounts = null; @JsonIgnore protected boolean isset_backCounts = false; private Integer initCount = null; @JsonIgnore protected boolean isset_initCount = false; private Long depFormLendingGoodsId = null; @JsonIgnore protected boolean isset_depFormLendingGoodsId = false; private Integer endCount = null; @JsonIgnore protected boolean isset_endCount = false; private Long depFormLendingId = null; @JsonIgnore protected boolean isset_depFormLendingId = false; private Long warehouseId = null; @JsonIgnore protected boolean isset_warehouseId = false; /** * 默认构造函数 */ public DepFormBackGoods() { } /** * 根据主键构造对象 */ public DepFormBackGoods(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 Long getDepFormBackId() { return this.depFormBackId; } public void setDepFormBackId(Long depFormBackId) { this.depFormBackId = depFormBackId; this.isset_depFormBackId = true; } @JsonIgnore public boolean isEmptyDepFormBackId() { return this.depFormBackId == null; } public String getUnit() { return this.unit; } public void setUnit(String unit) { this.unit = unit; this.isset_unit = true; } @JsonIgnore public boolean isEmptyUnit() { return this.unit == null || this.unit.length() == 0; } public Integer getBackCounts() { return this.backCounts; } public void setBackCounts(Integer backCounts) { this.backCounts = backCounts; this.isset_backCounts = true; } @JsonIgnore public boolean isEmptyBackCounts() { return this.backCounts == null; } public Integer getInitCount() { return this.initCount; } public void setInitCount(Integer initCount) { this.initCount = initCount; this.isset_initCount = true; } @JsonIgnore public boolean isEmptyInitCount() { return this.initCount == null; } public Long getDepFormLendingGoodsId() { return this.depFormLendingGoodsId; } public void setDepFormLendingGoodsId(Long depFormLendingGoodsId) { this.depFormLendingGoodsId = depFormLendingGoodsId; this.isset_depFormLendingGoodsId = true; } @JsonIgnore public boolean isEmptyDepFormLendingGoodsId() { return this.depFormLendingGoodsId == null; } public Integer getEndCount() { return this.endCount; } public void setEndCount(Integer endCount) { this.endCount = endCount; this.isset_endCount = true; } @JsonIgnore public boolean isEmptyEndCount() { return this.endCount == null; } public Long getDepFormLendingId() { return this.depFormLendingId; } public void setDepFormLendingId(Long depFormLendingId) { this.depFormLendingId = depFormLendingId; this.isset_depFormLendingId = true; } @JsonIgnore public boolean isEmptyDepFormLendingId() { return this.depFormLendingId == null; } public Long getWarehouseId() { return this.warehouseId; } public void setWarehouseId(Long warehouseId) { this.warehouseId = warehouseId; this.isset_warehouseId = true; } @JsonIgnore public boolean isEmptyWarehouseId() { return this.warehouseId == null; } /** * 重写 toString() 方法 */ @Override public String toString() { return new StringBuilder() .append("id=").append(this.id) .append("depFormBackId=").append(this.depFormBackId) .append("unit=").append(this.unit) .append("backCounts=").append(this.backCounts) .append("initCount=").append(this.initCount) .append("depFormLendingGoodsId=").append(this.depFormLendingGoodsId) .append("endCount=").append(this.endCount) .append("depFormLendingId=").append(this.depFormLendingId) .append("warehouseId=").append(this.warehouseId) .toString(); } /** * 克隆 */ public DepFormBackGoods $clone() { DepFormBackGoods dep_form_back_goods = new DepFormBackGoods(); // 数据库名称 //dep_form_back_goods.setDatabaseName_(this.getDatabaseName_()); // 主键 if (this.isset_id) { dep_form_back_goods.setId(this.getId()); } // 普通属性 if (this.isset_depFormBackId) { dep_form_back_goods.setDepFormBackId(this.getDepFormBackId()); } if (this.isset_unit) { dep_form_back_goods.setUnit(this.getUnit()); } if (this.isset_backCounts) { dep_form_back_goods.setBackCounts(this.getBackCounts()); } if (this.isset_initCount) { dep_form_back_goods.setInitCount(this.getInitCount()); } if (this.isset_depFormLendingGoodsId) { dep_form_back_goods.setDepFormLendingGoodsId(this.getDepFormLendingGoodsId()); } if (this.isset_endCount) { dep_form_back_goods.setEndCount(this.getEndCount()); } if (this.isset_depFormLendingId) { dep_form_back_goods.setDepFormLendingId(this.getDepFormLendingId()); } if (this.isset_warehouseId) { dep_form_back_goods.setWarehouseId(this.getWarehouseId()); } return dep_form_back_goods; } }