派生自 projectDept/qhighschool

EricsHu
2022-12-05 068fc7f2e81178e55fa191a13709af64b1a163f6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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;
    }
    
    
}