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