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;
|
}
|
|
}
|