【Java开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了Java开源代码-BspMySplContactId.java的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
package ch17.hibernate;
/**
* BspMySplContactId entity.
*
* @author MyEclipse Persistence Tools
*/
public class BspMySplContactId implements java.io.Serializable {
// Fields
private String myId;
private String contId;
// Constructors
/** default constructor */
public BspMySplContactId() {
}
/** full constructor */
public BspMySplContactId(String myId, String contId) {
this.myId = myId;
this.contId = contId;
}
// Property accessors
public String getMyId() {
return this.myId;
}
public void setMyId(String myId) {
this.myId = myId;
}
public String getContId() {
return this.contId;
}
public void setContId(String contId) {
this.contId = contId;
}
public boolean equals(Object other) {
if ((this == other))
return true;
if ((other == null))
return false;
if (!(other instanceof BspMySplContactId))
return false;
BspMySplContactId castOther = (BspMySplContactId) other;
return ((this.getMyId() == castOther.getMyId()) || (this.getMyId() != null
&& castOther.getMyId() != null && this.getMyId().equals(
castOther.getMyId())))
&& ((this.getContId() == castOther.getContId()) || (this
.getContId() != null
&& castOther.getContId() != null && this.getContId()
.equals(castOther.getContId())));
}
public int hashCode() {
int result = 17;
result = 37 * result
+ (getMyId() == null ? 0 : this.getMyId().hashCode());
result = 37 * result
+ (getContId() == null ? 0 : this.getContId().hashCode());
return result;
}
}
上一篇:
BspMySplContactDAOImpl.java
下一篇:
ASP小区停车管理系统(Access)(含录像)