package com.qxueyou.scc.school.model;
|
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
import java.math.BigInteger;
|
import java.util.Date;
|
|
import javax.persistence.Column;
|
import javax.persistence.Embeddable;
|
|
|
/**
|
* 学员拥有的评估信息view
|
*
|
*/
|
@Embeddable
|
public class EvaluateStuStudentVId implements Serializable {
|
private static final long serialVersionUID = 1L;
|
|
|
private String evaluateId;
|
private String userId;
|
|
|
public EvaluateStuStudentVId() {
|
|
}
|
|
public EvaluateStuStudentVId(String evaluateId, String userId) {
|
this.evaluateId = evaluateId;
|
this.userId = userId;
|
}
|
|
public EvaluateStuStudentVId(String evaluateName, short status, BigDecimal score, BigInteger evaluateCount,
|
String createId, Date createTime, String updateId, Date updateTime, Date endTime,String evaluateId, String userId) {
|
this.evaluateId = evaluateId;
|
this.userId = userId;
|
}
|
|
/** 用户id */
|
@Column(name="USER_ID", length=32)
|
public String getEvaluateId() {
|
return evaluateId;
|
}
|
|
@Column(name="EVALUATE_ID", length=32)
|
public String getUserId() {
|
return userId;
|
}
|
|
public void setUserId(String userId) {
|
this.userId = userId;
|
}
|
|
public void setEvaluateId(String evaluateId) {
|
this.evaluateId = evaluateId;
|
}
|
|
public boolean equals(Object other) {
|
if ((this == other))
|
return true;
|
if ((other == null))
|
return false;
|
if (!(other instanceof EvaluateStuStudentVId))
|
return false;
|
EvaluateStuStudentVId castOther = (EvaluateStuStudentVId) other;
|
|
return (
|
((this.getEvaluateId() == castOther.getEvaluateId()) || (this.getEvaluateId() != null
|
&& castOther.getEvaluateId() != null && this.getEvaluateId().equals(castOther.getEvaluateId())))
|
&& ((this.getUserId() == castOther.getUserId()) || (this.getUserId() != null
|
&& castOther.getUserId() != null && this.getUserId().equals(castOther.getUserId())))
|
)
|
;
|
}
|
|
public int hashCode() {
|
int result = 17;
|
|
result = 37 * result + (getEvaluateId() == null ? 0 : this.getEvaluateId().hashCode());
|
result = 37 * result + (getUserId() == null ? 0 : this.getUserId().hashCode());
|
return result;
|
}
|
|
|
}
|