package com.ishop.model.po; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnore; import com.walker.jdbc.BasePo; /** * 表名:EB_ORDER_INVOICE_DETAIL * * @author genrator */ @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) public class EbOrderInvoiceDetail extends BasePo { // 序列化版本号 private static final long serialVersionUID = 1L; // 主键 private Long id = null; @JsonIgnore protected boolean isset_id = false; // 属性列表 private Long invoiceId = null; @JsonIgnore protected boolean isset_invoiceId = false; private Long productId = null; @JsonIgnore protected boolean isset_productId = false; private String productName = null; @JsonIgnore protected boolean isset_productName = false; private String image = null; @JsonIgnore protected boolean isset_image = false; private Integer attrValueId = null; @JsonIgnore protected boolean isset_attrValueId = false; private String sku = null; @JsonIgnore protected boolean isset_sku = false; private Integer num = null; @JsonIgnore protected boolean isset_num = false; private Long createTime = null; @JsonIgnore protected boolean isset_createTime = false; private Long updateTime = null; @JsonIgnore protected boolean isset_updateTime = false; /** * 默认构造函数 */ public EbOrderInvoiceDetail() { } /** * 根据主键构造对象 */ public EbOrderInvoiceDetail(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 getInvoiceId() { return this.invoiceId; } public void setInvoiceId(Long invoiceId) { this.invoiceId = invoiceId; this.isset_invoiceId = true; } @JsonIgnore public boolean isEmptyInvoiceId() { return this.invoiceId == null; } public Long getProductId() { return this.productId; } public void setProductId(Long productId) { this.productId = productId; this.isset_productId = true; } @JsonIgnore public boolean isEmptyProductId() { return this.productId == null; } public String getProductName() { return this.productName; } public void setProductName(String productName) { this.productName = productName; this.isset_productName = true; } @JsonIgnore public boolean isEmptyProductName() { return this.productName == null || this.productName.length() == 0; } public String getImage() { return this.image; } public void setImage(String image) { this.image = image; this.isset_image = true; } @JsonIgnore public boolean isEmptyImage() { return this.image == null || this.image.length() == 0; } public Integer getAttrValueId() { return this.attrValueId; } public void setAttrValueId(Integer attrValueId) { this.attrValueId = attrValueId; this.isset_attrValueId = true; } @JsonIgnore public boolean isEmptyAttrValueId() { return this.attrValueId == null; } public String getSku() { return this.sku; } public void setSku(String sku) { this.sku = sku; this.isset_sku = true; } @JsonIgnore public boolean isEmptySku() { return this.sku == null || this.sku.length() == 0; } public Integer getNum() { return this.num; } public void setNum(Integer num) { this.num = num; this.isset_num = true; } @JsonIgnore public boolean isEmptyNum() { return this.num == null; } public Long getCreateTime() { return this.createTime; } public void setCreateTime(Long createTime) { this.createTime = createTime; this.isset_createTime = true; } @JsonIgnore public boolean isEmptyCreateTime() { return this.createTime == null; } public Long getUpdateTime() { return this.updateTime; } public void setUpdateTime(Long updateTime) { this.updateTime = updateTime; this.isset_updateTime = true; } @JsonIgnore public boolean isEmptyUpdateTime() { return this.updateTime == null; } /** * 重写 toString() 方法 */ @Override public String toString() { return new StringBuilder() .append("id=").append(this.id) .append("invoiceId=").append(this.invoiceId) .append("productId=").append(this.productId) .append("productName=").append(this.productName) .append("image=").append(this.image) .append("attrValueId=").append(this.attrValueId) .append("sku=").append(this.sku) .append("num=").append(this.num) .append("createTime=").append(this.createTime) .append("updateTime=").append(this.updateTime) .toString(); } /** * 克隆 */ public EbOrderInvoiceDetail $clone() { EbOrderInvoiceDetail eb_order_invoice_detail = new EbOrderInvoiceDetail(); // 数据库名称 //eb_order_invoice_detail.setDatabaseName_(this.getDatabaseName_()); // 主键 if (this.isset_id) { eb_order_invoice_detail.setId(this.getId()); } // 普通属性 if (this.isset_invoiceId) { eb_order_invoice_detail.setInvoiceId(this.getInvoiceId()); } if (this.isset_productId) { eb_order_invoice_detail.setProductId(this.getProductId()); } if (this.isset_productName) { eb_order_invoice_detail.setProductName(this.getProductName()); } if (this.isset_image) { eb_order_invoice_detail.setImage(this.getImage()); } if (this.isset_attrValueId) { eb_order_invoice_detail.setAttrValueId(this.getAttrValueId()); } if (this.isset_sku) { eb_order_invoice_detail.setSku(this.getSku()); } if (this.isset_num) { eb_order_invoice_detail.setNum(this.getNum()); } if (this.isset_createTime) { eb_order_invoice_detail.setCreateTime(this.getCreateTime()); } if (this.isset_updateTime) { eb_order_invoice_detail.setUpdateTime(this.getUpdateTime()); } return eb_order_invoice_detail; } }