📄 discountsid.java
字号:
package fmq.model.bo;
/**
* DiscountsId generated by MyEclipse Persistence Tools
*/
public class DiscountsId implements java.io.Serializable {
// Fields
private String discounttype;
private Stores stores;
private Short lowqty;
private Short highqty;
private Double discount;
// Constructors
/** default constructor */
public DiscountsId() {
}
/** minimal constructor */
public DiscountsId(String discounttype, Double discount) {
this.discounttype = discounttype;
this.discount = discount;
}
/** full constructor */
public DiscountsId(String discounttype, Stores stores, Short lowqty,
Short highqty, Double discount) {
this.discounttype = discounttype;
this.stores = stores;
this.lowqty = lowqty;
this.highqty = highqty;
this.discount = discount;
}
// Property accessors
public String getDiscounttype() {
return this.discounttype;
}
public void setDiscounttype(String discounttype) {
this.discounttype = discounttype;
}
public Stores getStores() {
return this.stores;
}
public void setStores(Stores stores) {
this.stores = stores;
}
public Short getLowqty() {
return this.lowqty;
}
public void setLowqty(Short lowqty) {
this.lowqty = lowqty;
}
public Short getHighqty() {
return this.highqty;
}
public void setHighqty(Short highqty) {
this.highqty = highqty;
}
public Double getDiscount() {
return this.discount;
}
public void setDiscount(Double discount) {
this.discount = discount;
}
public boolean equals(Object other) {
if ((this == other))
return true;
if ((other == null))
return false;
if (!(other instanceof DiscountsId))
return false;
DiscountsId castOther = (DiscountsId) other;
return ((this.getDiscounttype() == castOther.getDiscounttype()) || (this
.getDiscounttype() != null
&& castOther.getDiscounttype() != null && this
.getDiscounttype().equals(castOther.getDiscounttype())))
&& ((this.getStores() == castOther.getStores()) || (this
.getStores() != null
&& castOther.getStores() != null && this.getStores()
.equals(castOther.getStores())))
&& ((this.getLowqty() == castOther.getLowqty()) || (this
.getLowqty() != null
&& castOther.getLowqty() != null && this.getLowqty()
.equals(castOther.getLowqty())))
&& ((this.getHighqty() == castOther.getHighqty()) || (this
.getHighqty() != null
&& castOther.getHighqty() != null && this.getHighqty()
.equals(castOther.getHighqty())))
&& ((this.getDiscount() == castOther.getDiscount()) || (this
.getDiscount() != null
&& castOther.getDiscount() != null && this
.getDiscount().equals(castOther.getDiscount())));
}
public int hashCode() {
int result = 17;
result = 37
* result
+ (getDiscounttype() == null ? 0 : this.getDiscounttype()
.hashCode());
result = 37 * result
+ (getStores() == null ? 0 : this.getStores().hashCode());
result = 37 * result
+ (getLowqty() == null ? 0 : this.getLowqty().hashCode());
result = 37 * result
+ (getHighqty() == null ? 0 : this.getHighqty().hashCode());
result = 37 * result
+ (getDiscount() == null ? 0 : this.getDiscount().hashCode());
return result;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -