派生自 projectDept/qhighschool

胡仁荣
2023-10-08 c257eda25e4c9cb6fdfa8a9a85c2dd7be67b5a49
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
package com.qxueyou.scc.admin.score.model.view;
 
import javax.persistence.Column;
import javax.persistence.Embeddable;
 
/**
 * ExamScoreVId generated by hbm2java
 */
@Embeddable
public class ExamScoreVId implements java.io.Serializable {
 
    private static final long serialVersionUID = -4932822579305027322L;
    private String examId;
    private String userId;
 
    public ExamScoreVId() {
    }
 
 
    @Column(name = "USER_ID", length = 32)
    public String getUserId() {
        return this.userId;
    }
 
    public void setUserId(String userId) {
        this.userId = userId;
    }
 
    @Column(name = "EXAM_ID")
    public String getExamId() {
        return this.examId;
    }
 
    public void setExamId(String examId) {
        this.examId = examId;
    }
 
 
    public boolean equals(Object other) {
        if ((this == other))
            return true;
        if ((other == null))
            return false;
        if (!(other instanceof ExamScoreVId))
            return false;
        ExamScoreVId castOther = (ExamScoreVId) other;
 
        return (
                ((this.getUserId() == castOther.getUserId()) || (this.getUserId() != null
                        && castOther.getUserId() != null && this.getUserId().equals(castOther.getUserId())))
                
                
                && ((this.getExamId() == castOther.getExamId()) || (this.getExamId() != null
                        && castOther.getExamId() != null && this.getExamId().equals(castOther.getExamId())))
                );
    }
 
    public int hashCode() {
        int result = 17;
 
        result = 37 * result + (getUserId() == null ? 0 : this.getUserId().hashCode());
        result = 37 * result + (getExamId() == null ? 0 : this.getExamId().hashCode());
        return result;
    }
 
}