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