package com.qxueyou.scc.admin.score.model.view; import javax.persistence.Column; import javax.persistence.Embeddable; /** * ExamScoreVId generated by hbm2java */ @Embeddable public class ExamScoreVId implements java.io.Serializable { private static final long serialVersionUID = -4932822579305027322L; private String examId; private String userId; public ExamScoreVId() { } @Column(name = "USER_ID", length = 32) public String getUserId() { return this.userId; } public void setUserId(String userId) { this.userId = userId; } @Column(name = "EXAM_ID") public String getExamId() { return this.examId; } public void setExamId(String examId) { this.examId = examId; } public boolean equals(Object other) { if ((this == other)) return true; if ((other == null)) return false; if (!(other instanceof ExamScoreVId)) return false; ExamScoreVId castOther = (ExamScoreVId) other; return ( ((this.getUserId() == castOther.getUserId()) || (this.getUserId() != null && castOther.getUserId() != null && this.getUserId().equals(castOther.getUserId()))) && ((this.getExamId() == castOther.getExamId()) || (this.getExamId() != null && castOther.getExamId() != null && this.getExamId().equals(castOther.getExamId()))) ); } public int hashCode() { int result = 17; result = 37 * result + (getUserId() == null ? 0 : this.getUserId().hashCode()); result = 37 * result + (getExamId() == null ? 0 : this.getExamId().hashCode()); return result; } }