📄 studentcourselinkkey.java
字号:
/* * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized * by MyEclipse Hibernate tool integration. * */package limq.hibernate.vo;import java.io.Serializable;/** * A class representing a composite primary key id for the student_course_link * table. This object should only be instantiated for use with instances * of the StudentCourseLink class. */public class StudentCourseLinkKey implements Serializable{ /** The cached hash code value for this instance. Settting to 0 triggers re-calculation. */ private volatile int hashValue = 0; /** The value of the CourseId component of this composite id. */ private java.lang.Integer courseid; /** The value of the StudentId component of this composite id. */ private java.lang.Integer studentid; /** * Simple constructor of StudentCourseLinkKey instances. */ public StudentCourseLinkKey() { } /** * Returns the value of the courseid property. * @return java.lang.Integer */ public java.lang.Integer getCourseid() { return courseid; } /** * Sets the value of the courseid property. * @param courseid */ public void setCourseid(java.lang.Integer courseid) { hashValue = 0; this.courseid = courseid; } /** * Returns the value of the studentid property. * @return java.lang.Integer */ public java.lang.Integer getStudentid() { return studentid; } /** * Sets the value of the studentid property. * @param studentid */ public void setStudentid(java.lang.Integer studentid) { hashValue = 0; this.studentid = studentid; } /** * Implementation of the equals comparison on the basis of equality of the id components. * @param rhs * @return boolean */ public boolean equals(Object rhs) { if (rhs == null) return false; if (! (rhs instanceof StudentCourseLinkKey)) return false; StudentCourseLinkKey that = (StudentCourseLinkKey) rhs; if (this.getCourseid() != null && that.getCourseid() != null) { if (! this.getCourseid().equals(that.getCourseid())) { return false; } } if (this.getStudentid() != null && that.getStudentid() != null) { if (! this.getStudentid().equals(that.getStudentid())) { return false; } } return true; } /** * Implementation of the hashCode method conforming to the Bloch pattern with * the exception of array properties (these are very unlikely primary key types). * @return int */ public int hashCode() { if (this.hashValue == 0) { int result = 17; int courseidValue = this.getCourseid() == null ? 0 : this.getCourseid().hashCode(); result = result * 37 + courseidValue; int studentidValue = this.getStudentid() == null ? 0 : this.getStudentid().hashCode(); result = result * 37 + studentidValue; this.hashValue = result; } return this.hashValue; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -