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