package com.qxueyou.scc.exercise.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;
|
|
|
/**
|
* app端做题答案提交数据格式
|
* The persistent class for the exercise_data_submit_log database table.
|
*
|
*/
|
@Entity
|
@Table(name="exercise_data_submit_log")
|
@NamedQuery(name="ExerciseDataSubmitLog.findAll", query="SELECT e FROM ExerciseDataSubmitLog e")
|
public class ExerciseDataSubmitLog implements Serializable {
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@GeneratedValue(generator = "hibernate-uuid")
|
@GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
|
@Column(name="EXERCISE_DATA_LOG_ID", unique=true, nullable=false, length=32)
|
private String exerciseDataLogId;
|
|
@Column(name="EXERCISE_BUSSINESS_ID", length=32)
|
private String exerciseBussinessId;
|
|
@Column(name="data")
|
private String data;
|
|
@Column(name="TYPE")
|
private short type;
|
|
|
/** 日志类型(1,提交做题答案(错题、收藏除外); 2,提交做题答案(错题、收藏); */
|
|
public final static short TYPE_SUBMIT_ANSWER = 1;
|
|
public final static short TYPE_SUBMIT_EXTEND_ANSWER = 2;
|
|
@Column(name="STATUS")
|
private int status;
|
|
public final static int STATUS_SUCCESS = 0;
|
|
public final static int STATUS_FAILED = 1;
|
|
@Column(name="URL")
|
private String url;
|
|
@Column(name="UPDATE_ID", length=32)
|
private String updateId;
|
|
@Column(name="UPDATE_TIME", nullable=false)
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date updateTime;
|
|
@Column(name="UPDATOR", length=100)
|
private String updator;
|
|
public String getExerciseDataLogId() {
|
return exerciseDataLogId;
|
}
|
|
public void setExerciseDataLogId(String exerciseDataLogId) {
|
this.exerciseDataLogId = exerciseDataLogId;
|
}
|
|
public String getData() {
|
return data;
|
}
|
|
public void setData(String data) {
|
this.data = data;
|
}
|
|
public String getUpdateId() {
|
return updateId;
|
}
|
|
public void setUpdateId(String updateId) {
|
this.updateId = updateId;
|
}
|
|
public Date getUpdateTime() {
|
return updateTime;
|
}
|
|
public void setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
public String getUpdator() {
|
return updator;
|
}
|
|
public void setUpdator(String updator) {
|
this.updator = updator;
|
}
|
|
public String getExerciseBussinessId() {
|
return exerciseBussinessId;
|
}
|
|
public void setExerciseBussinessId(String exerciseBussinessId) {
|
this.exerciseBussinessId = exerciseBussinessId;
|
}
|
|
public short getType() {
|
return type;
|
}
|
|
public void setType(short type) {
|
this.type = type;
|
}
|
|
public int getStatus() {
|
return status;
|
}
|
|
public void setStatus(int status) {
|
this.status = status;
|
}
|
|
public String getUrl() {
|
return url;
|
}
|
|
public void setUrl(String url) {
|
this.url = url;
|
}
|
|
}
|