📄 storageid.java
字号:
package com.accp.po;
/**
* StorageId entity.
*
* @author MyEclipse Persistence Tools
*/
public class StorageId implements java.io.Serializable {
// Fields
private Long stkId;
private Product product;
private String stkWarehouse;
private String stkWare;
private Integer stkCount;
private String stkMemo;
// Constructors
/** default constructor */
public StorageId() {
}
/** minimal constructor */
public StorageId(Long stkId, Product product, String stkWarehouse,
String stkWare, Integer stkCount) {
this.stkId = stkId;
this.product = product;
this.stkWarehouse = stkWarehouse;
this.stkWare = stkWare;
this.stkCount = stkCount;
}
/** full constructor */
public StorageId(Long stkId, Product product, String stkWarehouse,
String stkWare, Integer stkCount, String stkMemo) {
this.stkId = stkId;
this.product = product;
this.stkWarehouse = stkWarehouse;
this.stkWare = stkWare;
this.stkCount = stkCount;
this.stkMemo = stkMemo;
}
// Property accessors
public Long getStkId() {
return this.stkId;
}
public void setStkId(Long stkId) {
this.stkId = stkId;
}
public Product getProduct() {
return this.product;
}
public void setProduct(Product product) {
this.product = product;
}
public String getStkWarehouse() {
return this.stkWarehouse;
}
public void setStkWarehouse(String stkWarehouse) {
this.stkWarehouse = stkWarehouse;
}
public String getStkWare() {
return this.stkWare;
}
public void setStkWare(String stkWare) {
this.stkWare = stkWare;
}
public Integer getStkCount() {
return this.stkCount;
}
public void setStkCount(Integer stkCount) {
this.stkCount = stkCount;
}
public String getStkMemo() {
return this.stkMemo;
}
public void setStkMemo(String stkMemo) {
this.stkMemo = stkMemo;
}
public boolean equals(Object other) {
if ((this == other))
return true;
if ((other == null))
return false;
if (!(other instanceof StorageId))
return false;
StorageId castOther = (StorageId) other;
return ((this.getStkId() == castOther.getStkId()) || (this.getStkId() != null
&& castOther.getStkId() != null && this.getStkId().equals(
castOther.getStkId())))
&& ((this.getProduct() == castOther.getProduct()) || (this
.getProduct() != null
&& castOther.getProduct() != null && this.getProduct()
.equals(castOther.getProduct())))
&& ((this.getStkWarehouse() == castOther.getStkWarehouse()) || (this
.getStkWarehouse() != null
&& castOther.getStkWarehouse() != null && this
.getStkWarehouse().equals(castOther.getStkWarehouse())))
&& ((this.getStkWare() == castOther.getStkWare()) || (this
.getStkWare() != null
&& castOther.getStkWare() != null && this.getStkWare()
.equals(castOther.getStkWare())))
&& ((this.getStkCount() == castOther.getStkCount()) || (this
.getStkCount() != null
&& castOther.getStkCount() != null && this
.getStkCount().equals(castOther.getStkCount())))
&& ((this.getStkMemo() == castOther.getStkMemo()) || (this
.getStkMemo() != null
&& castOther.getStkMemo() != null && this.getStkMemo()
.equals(castOther.getStkMemo())));
}
public int hashCode() {
int result = 17;
result = 37 * result
+ (getStkId() == null ? 0 : this.getStkId().hashCode());
result = 37 * result
+ (getProduct() == null ? 0 : this.getProduct().hashCode());
result = 37
* result
+ (getStkWarehouse() == null ? 0 : this.getStkWarehouse()
.hashCode());
result = 37 * result
+ (getStkWare() == null ? 0 : this.getStkWare().hashCode());
result = 37 * result
+ (getStkCount() == null ? 0 : this.getStkCount().hashCode());
result = 37 * result
+ (getStkMemo() == null ? 0 : this.getStkMemo().hashCode());
return result;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -