【Java开源代码栏目提醒】:网学会员为广大网友收集整理了,BspInqPartsId.java,希望对大家有所帮助!
package ch17.hibernate;
/**
* BspInqPartsId entity.
*
* @author MyEclipse Persistence Tools
*/
public class BspInqPartsId implements java.io.Serializable {
// Fields
private String iid;
private Integer iin;
// Constructors
/** default constructor */
public BspInqPartsId() {
}
/** full constructor */
public BspInqPartsId(String iid, Integer iin) {
this.iid = iid;
this.iin = iin;
}
// Property accessors
public String getIid() {
return this.iid;
}
public void setIid(String iid) {
this.iid = iid;
}
public Integer getIin() {
return this.iin;
}
public void setIin(Integer iin) {
this.iin = iin;
}
public boolean equals(Object other) {
if ((this == other))
return true;
if ((other == null))
return false;
if (!(other instanceof BspInqPartsId))
return false;
BspInqPartsId castOther = (BspInqPartsId) other;
return ((this.getIid() == castOther.getIid()) || (this.getIid() != null
&& castOther.getIid() != null && this.getIid().equals(
castOther.getIid())))
&& ((this.getIin() == castOther.getIin()) || (this.getIin() != null
&& castOther.getIin() != null && this.getIin().equals(
castOther.getIin())));
}
public int hashCode() {
int result = 17;
result = 37 * result
+ (getIid() == null ? 0 : this.getIid().hashCode());
result = 37 * result
+ (getIin() == null ? 0 : this.getIin().hashCode());
return result;
}
}
上一篇:
BspInqPartsDAOImpl.java
下一篇:
多年来只想说一句,我不怪你