producttype.java
来自「ERPERP ERP ERP ERP ERP ERP ERP ERP」· Java 代码 · 共 60 行
JAVA
60 行
package cn.hyq.erp.domain;
public class ProductType {
private Integer productTypeId;
private String productTypeName;
private Product product;
public Integer getProductTypeId() {
return productTypeId;
}
public void setProductTypeId(Integer productTypeId) {
this.productTypeId = productTypeId;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result
+ ((productTypeId == null) ? 0 : productTypeId.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
final ProductType other = (ProductType) obj;
if (productTypeId == null) {
if (other.productTypeId != null)
return false;
} else if (!productTypeId.equals(other.productTypeId))
return false;
return true;
}
public String getProductTypeName() {
return productTypeName;
}
public void setProductTypeName(String productTypeName) {
this.productTypeName = productTypeName;
}
public Product getProduct() {
return product;
}
public void setProduct(Product product) {
this.product = product;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?