派生自 projectDept/qhighschool

yn147
2023-05-10 96286178ee1c257c130cb2ad964a781f36c4eee5
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
87
88
package com.qxueyou.scc.exercise.model;
// Generated 2018-3-19 20:40:08 by Hibernate Tools 5.2.8.Final
 
import javax.persistence.Column;
import javax.persistence.Embeddable;
 
/**
 * ExamResultVId generated by hbm2java
 */
@Embeddable
public class ExerciseResultVId implements java.io.Serializable {
 
    /**
     * UID
     */
    private static final long serialVersionUID = 8692825818826083872L;
    
    @Column(name = "EXERCISE_INFO_ID")
    private String exerciseInfoId;
    
    @Column(name = "CLASS_ID")
    private String classId;
    
    @Column(name = "STUDENT_ID")
    private String studentId;
 
    public ExerciseResultVId() {
    }
 
    public ExerciseResultVId(String exerciseInfoId, String classId, String studentId) {
        this.exerciseInfoId = exerciseInfoId;
        this.classId = classId;
        this.studentId = studentId;
    }
    
    public String getExerciseInfoId() {
        return exerciseInfoId;
    }
 
    public void setExerciseInfoId(String exerciseInfoId) {
        this.exerciseInfoId = exerciseInfoId;
    }
 
    public String getStudentId() {
        return studentId;
    }
 
    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }
 
    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 ExerciseResultVId))
            return false;
        ExerciseResultVId castOther = (ExerciseResultVId) other;
 
        return (
                ((this.getExerciseInfoId() == castOther.getExerciseInfoId()) || (this.getExerciseInfoId() != null
                && castOther.getExerciseInfoId() != null && this.getExerciseInfoId().equals(castOther.getExerciseInfoId())))
        
                && ((this.getStudentId() == castOther.getStudentId()) || (this.getStudentId() != null
                && castOther.getStudentId() != null && this.getStudentId().equals(castOther.getStudentId())))
        
                && ((this.getClassId() == castOther.getClassId()) || (this.getClassId() != null
                && castOther.getClassId() != null && this.getClassId().equals(castOther.getClassId())))
        );
    }
 
    public int hashCode() {
        int result = 17;
        result = 37 * result + (getExerciseInfoId() == null ? 0 : this.getExerciseInfoId().hashCode());
        result = 37 * result + (getStudentId() == null ? 0 : this.getStudentId().hashCode());
        result = 37 * result + (getClassId() == null ? 0 : this.getClassId().hashCode());
        return result;
    }
}