?? studentanswertableid.java
字號:
package exam.dao;
/**
* StudentAnswerTableId entity. @author MyEclipse Persistence Tools
*/
public class StudentAnswerTableId implements java.io.Serializable {
// Fields
private Integer studentanswerid;
private String otheranswer;
private Integer studentid;
// Constructors
/** default constructor */
public StudentAnswerTableId() {
}
/** full constructor */
public StudentAnswerTableId(Integer studentanswerid, String otheranswer,
Integer studentid) {
this.studentanswerid = studentanswerid;
this.otheranswer = otheranswer;
this.studentid = studentid;
}
// Property accessors
public Integer getStudentanswerid() {
return this.studentanswerid;
}
public void setStudentanswerid(Integer studentanswerid) {
this.studentanswerid = studentanswerid;
}
public String getOtheranswer() {
return this.otheranswer;
}
public void setOtheranswer(String otheranswer) {
this.otheranswer = otheranswer;
}
public Integer getStudentid() {
return this.studentid;
}
public void setStudentid(Integer studentid) {
this.studentid = studentid;
}
public boolean equals(Object other) {
if ((this == other))
return true;
if ((other == null))
return false;
if (!(other instanceof StudentAnswerTableId))
return false;
StudentAnswerTableId castOther = (StudentAnswerTableId) other;
return ((this.getStudentanswerid() == castOther.getStudentanswerid()) || (this
.getStudentanswerid() != null
&& castOther.getStudentanswerid() != null && this
.getStudentanswerid().equals(castOther.getStudentanswerid())))
&& ((this.getOtheranswer() == castOther.getOtheranswer()) || (this
.getOtheranswer() != null
&& castOther.getOtheranswer() != null && this
.getOtheranswer().equals(castOther.getOtheranswer())))
&& ((this.getStudentid() == castOther.getStudentid()) || (this
.getStudentid() != null
&& castOther.getStudentid() != null && this
.getStudentid().equals(castOther.getStudentid())));
}
public int hashCode() {
int result = 17;
result = 37
* result
+ (getStudentanswerid() == null ? 0 : this.getStudentanswerid()
.hashCode());
result = 37
* result
+ (getOtheranswer() == null ? 0 : this.getOtheranswer()
.hashCode());
result = 37 * result
+ (getStudentid() == null ? 0 : this.getStudentid().hashCode());
return result;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -