package com.qxueyou.scc.exam.model;
|
// Generated 2018-3-19 20:40:08 by Hibernate Tools 5.2.8.Final
|
|
import javax.persistence.Column;
|
import javax.persistence.Embeddable;
|
|
/**
|
* ExamResultVId generated by hbm2java
|
*/
|
@Embeddable
|
public class ExamResultVId implements java.io.Serializable {
|
|
/**
|
* UID
|
*/
|
private static final long serialVersionUID = 8692825818826083872L;
|
|
@Column(name = "EXAM_BATCH_ID")
|
private String examBatchId;
|
|
@Column(name = "CLASS_ID")
|
private String classId;
|
|
@Column(name = "STUDENT_NO")
|
private String studentNo;
|
|
public ExamResultVId() {
|
}
|
|
public ExamResultVId(String examBatchId, String classId, String studentNo) {
|
this.examBatchId = examBatchId;
|
this.classId = classId;
|
this.studentNo = studentNo;
|
}
|
|
|
public String getExamBatchId() {
|
return examBatchId;
|
}
|
|
public void setExamBatchId(String examBatchId) {
|
this.examBatchId = examBatchId;
|
}
|
|
|
public String getStudentNo() {
|
return studentNo;
|
}
|
|
public void setStudentNo(String studentNo) {
|
this.studentNo = studentNo;
|
}
|
|
|
public String getClassId() {
|
return this.classId;
|
}
|
|
public void setClassId(String classId) {
|
this.classId = classId;
|
}
|
|
public boolean equals(Object other) {
|
if ((this == other))
|
return true;
|
if ((other == null))
|
return false;
|
if (!(other instanceof ExamResultVId))
|
return false;
|
ExamResultVId castOther = (ExamResultVId) other;
|
|
return (
|
((this.getExamBatchId() == castOther.getExamBatchId()) || (this.getExamBatchId() != null
|
&& castOther.getExamBatchId() != null && this.getExamBatchId().equals(castOther.getExamBatchId())))
|
|
&& ((this.getStudentNo() == castOther.getStudentNo()) || (this.getStudentNo() != null
|
&& castOther.getStudentNo() != null && this.getStudentNo().equals(castOther.getStudentNo())))
|
|
&& ((this.getClassId() == castOther.getClassId()) || (this.getClassId() != null
|
&& castOther.getClassId() != null && this.getClassId().equals(castOther.getClassId())))
|
);
|
}
|
|
public int hashCode() {
|
int result = 17;
|
result = 37 * result + (getExamBatchId() == null ? 0 : this.getExamBatchId().hashCode());
|
result = 37 * result + (getStudentNo() == null ? 0 : this.getStudentNo().hashCode());
|
result = 37 * result + (getClassId() == null ? 0 : this.getClassId().hashCode());
|
return result;
|
}
|
}
|