📄 enrolid.java
字号:
package org.wangsong.domain;
/**
* EnrolId generated by MyEclipse - Hibernate Tools
*/
public class EnrolId implements java.io.Serializable {
// Fields
private Classes classes;
private Student student;
private String accept;
private String score;
// Constructors
/** default constructor */
public EnrolId() {
}
/** full constructor */
public EnrolId(Classes classes, Student student, String accept, String score) {
this.classes = classes;
this.student = student;
this.accept = accept;
this.score = score;
}
// Property accessors
public Classes getClasses() {
return this.classes;
}
public void setClasses(Classes classes) {
this.classes = classes;
}
public Student getStudent() {
return this.student;
}
public void setStudent(Student student) {
this.student = student;
}
public String getAccept() {
return this.accept;
}
public void setAccept(String accept) {
this.accept = accept;
}
public String getScore() {
return this.score;
}
public void setScore(String score) {
this.score = score;
}
public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( (other == null ) ) return false;
if ( !(other instanceof EnrolId) ) return false;
EnrolId castOther = ( EnrolId ) other;
return ( (this.getClasses()==castOther.getClasses()) || ( this.getClasses()!=null && castOther.getClasses()!=null && this.getClasses().equals(castOther.getClasses()) ) ) && ( (this.getStudent()==castOther.getStudent()) || ( this.getStudent()!=null && castOther.getStudent()!=null && this.getStudent().equals(castOther.getStudent()) ) ) && ( (this.getAccept()==castOther.getAccept()) || ( this.getAccept()!=null && castOther.getAccept()!=null && this.getAccept().equals(castOther.getAccept()) ) ) && ( (this.getScore()==castOther.getScore()) || ( this.getScore()!=null && castOther.getScore()!=null && this.getScore().equals(castOther.getScore()) ) );
}
public int hashCode() {
int result = 17;
result = 37 * result + ( getClasses() == null ? 0 : this.getClasses().hashCode() );
result = 37 * result + ( getStudent() == null ? 0 : this.getStudent().hashCode() );
result = 37 * result + ( getAccept() == null ? 0 : this.getAccept().hashCode() );
result = 37 * result + ( getScore() == null ? 0 : this.getScore().hashCode() );
return result;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -