派生自 projectDept/qhighschool

yn147
2023-11-24 d7963a84282c548fee3595b3343e6ae6ca49bb29
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
package com.qxueyou.scc.teach.subject.model.view;
// Generated 2018-3-23 10:58:00 by Hibernate Tools 5.2.8.Final
 
import java.math.BigDecimal;
 
import javax.persistence.Column;
import javax.persistence.Embeddable;
 
/**
 * MyChapterProgressVId generated by hbm2java
 */
@Embeddable
public class MyChapterProgressVId implements java.io.Serializable {
 
    private static final long serialVersionUID = 8198482204950194696L;
    private String subjectId;
    private String userId;
    private String chapterId;
    private String classId;
 
    public MyChapterProgressVId() {
    }
 
    public MyChapterProgressVId(String chapterId) {
        this.chapterId = chapterId;
    }
 
    public MyChapterProgressVId(BigDecimal progressValue, String subjectId, String userId,
            String chapterId) {
        this.subjectId = subjectId;
        this.userId = userId;
        this.chapterId = chapterId;
    }
 
    @Column(name = "SUBJECT_ID", length = 32)
    public String getSubjectId() {
        return this.subjectId;
    }
 
    public void setSubjectId(String subjectId) {
        this.subjectId = subjectId;
    }
 
    @Column(name = "USER_ID", length = 32)
    public String getUserId() {
        return this.userId;
    }
 
    public void setUserId(String userId) {
        this.userId = userId;
    }
 
    @Column(name = "CHAPTER_ID", length = 32)
    public String getChapterId() {
        return this.chapterId;
    }
 
    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }
 
    public boolean equals(Object other) {
        if ((this == other))
            return true;
        if ((other == null))
            return false;
        if (!(other instanceof MyChapterProgressVId))
            return false;
        MyChapterProgressVId castOther = (MyChapterProgressVId) other;
 
        return (
                ((this.getSubjectId() == castOther.getSubjectId()) || (this.getSubjectId() != null
                        && castOther.getSubjectId() != null && this.getSubjectId().equals(castOther.getSubjectId())))
                && ((this.getUserId() == castOther.getUserId()) || (this.getUserId() != null
                        && castOther.getUserId() != null && this.getUserId().equals(castOther.getUserId())))
                && ((this.getChapterId() == castOther.getChapterId()) || (this.getChapterId() != null
                        && castOther.getChapterId() != null && this.getChapterId().equals(castOther.getChapterId())))
                && ((this.getClassId() == castOther.getClassId()) || (this.getClassId() != null
                && castOther.getClassId() != null && this.getClassId().equals(castOther.getClassId())))
                )
                ;
    }
 
    public int hashCode() {
        int result = 17;
 
        result = 37 * result + (getSubjectId() == null ? 0 : this.getSubjectId().hashCode());
        result = 37 * result + (getUserId() == null ? 0 : this.getUserId().hashCode());
        result = 37 * result + (getChapterId() == null ? 0 : this.getChapterId().hashCode());
        result = 37 * result + (getClassId() == null ? 0 : this.getClassId().hashCode());
        return result;
    }
 
    @Column(name = "CLASS_ID", length = 32)
    public String getClassId() {
        return classId;
    }
 
    public void setClassId(String classId) {
        this.classId = classId;
    }
 
}