package com.qxueyou.scc.teach.subject.model.view; // Generated 2018-3-19 20:40:08 by Hibernate Tools 5.2.8.Final import javax.persistence.Column; import javax.persistence.Embeddable; /** * MySubjectVId generated by hbm2java */ @Embeddable public class MyLectureVId implements java.io.Serializable { private static final long serialVersionUID = -2625337293794687416L; private String userId; private String lectureId; public MyLectureVId() { } @Column(name = "USER_ID", length = 32) public String getUserId() { return this.userId; } public void setUserId(String userId) { this.userId = userId; } @Column(name = "LECTURE_ID", nullable = false, length = 32) public String getLectureId() { return this.lectureId; } public void setLectureId(String lectureId) { this.lectureId = lectureId; } public boolean equals(Object other) { if ((this == other)) return true; if ((other == null)) return false; if (!(other instanceof MyLectureVId)) return false; MyLectureVId castOther = (MyLectureVId) other; return ( ((this.getUserId() == castOther.getUserId()) || (this.getUserId() != null && castOther.getUserId() != null && this.getUserId().equals(castOther.getUserId()))) && ((this.getLectureId() == castOther.getLectureId()) || (this.getLectureId() != null && castOther.getLectureId() != null && this.getLectureId().equals(castOther.getLectureId()))) ); } public int hashCode() { int result = 17; result = 37 * result + (getUserId() == null ? 0 : this.getUserId().hashCode()); result = 37 * result + (getLectureId() == null ? 0 : this.getLectureId().hashCode()); return result; } }