📄 vproduct.java
字号:
package org.jb.y272.team0.entity;
/**
* VProductId generated by MyEclipse - Hibernate Tools
*/
public class VProduct implements java.io.Serializable {
// Fields
/**
*
*/
private static final long serialVersionUID = 5749987775815077404L;
private Long prodId;
private String prodName;
private String prodType;
private String prodBatch;
private String prodUnit;
private Double prodPrice;
private String prodMemo;
// Constructors
/** default constructor */
public VProduct() {
}
/** minimal constructor */
public VProduct(Long prodId, String prodName, String prodType) {
this.prodId = prodId;
this.prodName = prodName;
this.prodType = prodType;
}
/** full constructor */
public VProduct(Long prodId, String prodName, String prodType, String prodBatch, String prodUnit, Double prodPrice, String prodMemo) {
this.prodId = prodId;
this.prodName = prodName;
this.prodType = prodType;
this.prodBatch = prodBatch;
this.prodUnit = prodUnit;
this.prodPrice = prodPrice;
this.prodMemo = prodMemo;
}
// 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 boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( (other == null ) ) return false;
if ( !(other instanceof VProduct) ) return false;
VProduct castOther = ( VProduct ) other;
return ( (this.getProdId()==castOther.getProdId()) || ( this.getProdId()!=null && castOther.getProdId()!=null && this.getProdId().equals(castOther.getProdId()) ) ) && ( (this.getProdName()==castOther.getProdName()) || ( this.getProdName()!=null && castOther.getProdName()!=null && this.getProdName().equals(castOther.getProdName()) ) ) && ( (this.getProdType()==castOther.getProdType()) || ( this.getProdType()!=null && castOther.getProdType()!=null && this.getProdType().equals(castOther.getProdType()) ) ) && ( (this.getProdBatch()==castOther.getProdBatch()) || ( this.getProdBatch()!=null && castOther.getProdBatch()!=null && this.getProdBatch().equals(castOther.getProdBatch()) ) ) && ( (this.getProdUnit()==castOther.getProdUnit()) || ( this.getProdUnit()!=null && castOther.getProdUnit()!=null && this.getProdUnit().equals(castOther.getProdUnit()) ) ) && ( (this.getProdPrice()==castOther.getProdPrice()) || ( this.getProdPrice()!=null && castOther.getProdPrice()!=null && this.getProdPrice().equals(castOther.getProdPrice()) ) ) && ( (this.getProdMemo()==castOther.getProdMemo()) || ( this.getProdMemo()!=null && castOther.getProdMemo()!=null && this.getProdMemo().equals(castOther.getProdMemo()) ) );
}
public int hashCode() {
int result = 17;
result = 37 * result + ( getProdId() == null ? 0 : this.getProdId().hashCode() );
result = 37 * result + ( getProdName() == null ? 0 : this.getProdName().hashCode() );
result = 37 * result + ( getProdType() == null ? 0 : this.getProdType().hashCode() );
result = 37 * result + ( getProdBatch() == null ? 0 : this.getProdBatch().hashCode() );
result = 37 * result + ( getProdUnit() == null ? 0 : this.getProdUnit().hashCode() );
result = 37 * result + ( getProdPrice() == null ? 0 : this.getProdPrice().hashCode() );
result = 37 * result + ( getProdMemo() == null ? 0 : this.getProdMemo().hashCode() );
return result;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -