📄 productentity.java
字号:
package crm.entity.other;
import java.util.HashSet;
import java.util.Set;
/**
* ProductEntity(实体类) 对应表 product (查询产品信息)
*/
public class ProductEntity implements java.io.Serializable {
private static final long serialVersionUID = 1942646324864164256L;
private Long prodId; //编号
private String prodName; //名称
private String prodType; //型号
private String prodBatch; //等级/批次
private String prodUnit; //单位
private Double prodPrice; //价格
private String prodMemo; //备注
private Set storages = new HashSet(0); //Set 接口。1的一方
private Set ordersLines = new HashSet(0); //Set 接口。1的一方
// Constructors
/** default constructor */
public ProductEntity() {
}
/** minimal constructor */
public ProductEntity(String prodName, String prodType) {
this.prodName = prodName;
this.prodType = prodType;
}
/** full constructor */
public ProductEntity(String prodName, String prodType, String prodBatch,
String prodUnit, Double prodPrice, String prodMemo, Set storages,
Set ordersLines) {
this.prodName = prodName;
this.prodType = prodType;
this.prodBatch = prodBatch;
this.prodUnit = prodUnit;
this.prodPrice = prodPrice;
this.prodMemo = prodMemo;
this.storages = storages;
this.ordersLines = ordersLines;
}
// Property accessors
public Long getProdId() {
return this.prodId;
}
public void setProdId(Long prodId) {
this.prodId = prodId;
}
public String getProdName() {
return this.prodName;
}
public void setProdName(String prodName) {
this.prodName = prodName;
}
public String getProdType() {
return this.prodType;
}
public void setProdType(String prodType) {
this.prodType = prodType;
}
public String getProdBatch() {
return this.prodBatch;
}
public void setProdBatch(String prodBatch) {
this.prodBatch = prodBatch;
}
public String getProdUnit() {
return this.prodUnit;
}
public void setProdUnit(String prodUnit) {
this.prodUnit = prodUnit;
}
public Double getProdPrice() {
return this.prodPrice;
}
public void setProdPrice(Double prodPrice) {
this.prodPrice = prodPrice;
}
public String getProdMemo() {
return this.prodMemo;
}
public void setProdMemo(String prodMemo) {
this.prodMemo = prodMemo;
}
public Set getStorages() {
return this.storages;
}
public void setStorages(Set storages) {
this.storages = storages;
}
public Set getOrdersLines() {
return this.ordersLines;
}
public void setOrdersLines(Set ordersLines) {
this.ordersLines = ordersLines;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -