package com.qxueyou.scc.teach.subject.model.view;
|
// Generated 2018-3-19 20:40:08 by Hibernate Tools 5.2.8.Final
|
|
import java.math.BigDecimal;
|
|
import javax.persistence.Column;
|
import javax.persistence.Embeddable;
|
|
/**
|
* MySubjectVId generated by hbm2java
|
*/
|
@Embeddable
|
public class MySubjectVId implements java.io.Serializable {
|
|
private static final long serialVersionUID = 7826222429187298941L;
|
private String userId;
|
private String subjectId;
|
private String classId;
|
|
public MySubjectVId() {
|
}
|
|
public MySubjectVId(String subjectId, String classId, int percent) {
|
this.subjectId = subjectId;
|
this.classId = classId;
|
}
|
|
public MySubjectVId(String coverPageUrl, String name, BigDecimal progressValue, String userId, String userName,
|
String subjectId, String subjectName, String classId, String className, int percent) {
|
this.userId = userId;
|
this.subjectId = subjectId;
|
this.classId = classId;
|
}
|
|
@Column(name = "USER_ID", length = 32)
|
public String getUserId() {
|
return this.userId;
|
}
|
|
public void setUserId(String userId) {
|
this.userId = userId;
|
}
|
|
@Column(name = "SUBJECT_ID", nullable = false, length = 32)
|
public String getSubjectId() {
|
return this.subjectId;
|
}
|
|
public void setSubjectId(String subjectId) {
|
this.subjectId = subjectId;
|
}
|
|
@Column(name = "CLASS_ID", nullable = false, length = 32)
|
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 MySubjectVId))
|
return false;
|
MySubjectVId castOther = (MySubjectVId) other;
|
|
return (
|
((this.getUserId() == castOther.getUserId()) || (this.getUserId() != null
|
&& castOther.getUserId() != null && this.getUserId().equals(castOther.getUserId())))
|
|
&& ((this.getSubjectId() == castOther.getSubjectId()) || (this.getSubjectId() != null
|
&& castOther.getSubjectId() != null && this.getSubjectId().equals(castOther.getSubjectId())))
|
|
&& ((this.getClassId() == castOther.getClassId()) || (this.getClassId() != null
|
&& castOther.getClassId() != null && this.getClassId().equals(castOther.getClassId())))
|
);
|
}
|
|
public int hashCode() {
|
int result = 17;
|
|
result = 37 * result + (getUserId() == null ? 0 : this.getUserId().hashCode());
|
result = 37 * result + (getSubjectId() == null ? 0 : this.getSubjectId().hashCode());
|
result = 37 * result + (getClassId() == null ? 0 : this.getClassId().hashCode());
|
return result;
|
}
|
|
}
|