派生自 projectDept/qhighschool

yn147
2023-11-23 bccada7cbf7eea3c37c0243d95426d1a29d9121f
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
package com.qxueyou.scc.exam.model;
// Generated 2018-3-19 20:40:08 by Hibernate Tools 5.2.8.Final
 
import javax.persistence.Column;
import javax.persistence.Embeddable;
 
/**
 * ExamItemVId generated by hbm2java
 */
@Embeddable
public class ExamItemVId implements java.io.Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = -3640937536495423279L;
 
    @Column(name = "GROUP_ID")
    private String groupId;
    
    @Column(name = "EXERCISE_ITEM_ID")
    private String exerciseItemId;
 
    public ExamItemVId() {
    }
 
    public ExamItemVId(String groupId, String exerciseItemId) {
        this.groupId = groupId;
        this.exerciseItemId = exerciseItemId;
    }
 
    public String getGroupId() {
        return groupId;
    }
 
    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }
 
    public String getExerciseItemId() {
        return exerciseItemId;
    }
 
    public void setExerciseItemId(String exerciseItemId) {
        this.exerciseItemId = exerciseItemId;
    }
 
    public boolean equals(Object other) {
        if ((this == other))
            return true;
        if ((other == null))
            return false;
        if (!(other instanceof ExamItemVId))
            return false;
        
        ExamItemVId castOther = (ExamItemVId) other;
 
        return (
                ((this.getGroupId() == castOther.getGroupId()) || (this.getGroupId() != null
                && castOther.getGroupId() != null && this.getGroupId().equals(castOther.getGroupId())))
        
                && ((this.getExerciseItemId() == castOther.getExerciseItemId()) || (this.getExerciseItemId() != null
                && castOther.getExerciseItemId() != null && this.getExerciseItemId().equals(castOther.getExerciseItemId())))
        );
    }
 
    public int hashCode() {
        int result = 17;
        result = 37 * result + (getGroupId() == null ? 0 : this.getGroupId().hashCode());
        result = 37 * result + (getExerciseItemId() == null ? 0 : this.getExerciseItemId().hashCode());
        return result;
    }
}