📄 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 + -