派生自 projectDept/qhighschool

胡仁荣
2023-07-18 885290e4d0d0c7fad3f538d901c616e49c3d6985
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
package com.qxueyou.scc.base.model;
 
import java.io.Serializable;
import java.util.Date;
 
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
 
import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;
 
import com.fasterxml.jackson.annotation.JsonIgnore;
 
/**
 * 微商缓存表
 * @author zhiyong
 *
 */
@Entity
@Table(name="wb_cache_key")
@NamedQuery(name="WbCacheKey.findAll", query="SELECT m FROM WbCacheKey m")
public class WbCacheKey implements Serializable {
    
    private static final long serialVersionUID = -3808487318187993941L;
 
    @Id
    @GeneratedValue(generator = "hibernate-uuid")
    @GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
    @Column(name="cache_key_id", unique=true, nullable=false, length=32)
    private String cacheKeyId;
 
    @Column(name="cache_key", length=255)
    private String cacheKey;
 
    /** 课程id  */
    @Column(name="SUBJECT_ID", length=32)
    private String subjectId;
    
    /** 对象id  */
    @Column(name="object_id", length=32)
    private String objectId;
 
    /**  对象type 1:机构 2:班级 */
    @Column(name="OBJECT_TYPE")
    private int objectType;
    
    public static final int OBJECT_TYPE_ORG = 1;
    
    public static final int OBJECT_TYPE_CLASS = 2;
    
    /**  创建时间 */
    @Column(name="CREATE_TIME")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonIgnore
    private Date createTime;
    
    /** 删除标志  */
    @Column(name="DELETE_FLAG", nullable=false)
    @JsonIgnore
    private boolean deleteFlag;
 
    public String getCacheKeyId() {
        return cacheKeyId;
    }
 
    public void setCacheKeyId(String cacheKeyId) {
        this.cacheKeyId = cacheKeyId;
    }
 
    public String getCacheKey() {
        return cacheKey;
    }
 
    public void setCacheKey(String cacheKey) {
        this.cacheKey = cacheKey;
    }
 
    public String getSubjectId() {
        return subjectId;
    }
 
    public void setSubjectId(String subjectId) {
        this.subjectId = subjectId;
    }
 
    public String getObjectId() {
        return objectId;
    }
 
    public void setObjectId(String objectId) {
        this.objectId = objectId;
    }
 
    public int getObjectType() {
        return objectType;
    }
 
    public void setObjectType(int objectType) {
        this.objectType = objectType;
    }
 
    public Date getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    public boolean getDeleteFlag() {
        return deleteFlag;
    }
 
    public void setDeleteFlag(boolean deleteFlag) {
        this.deleteFlag = deleteFlag;
    }
    
}