package com.qxueyou.scc.school.model;
|
// Generated 2018-3-22 21:54:48 by Hibernate Tools 5.2.8.Final
|
|
import java.util.Date;
|
|
import javax.persistence.Column;
|
import javax.persistence.Entity;
|
import javax.persistence.GeneratedValue;
|
import javax.persistence.Id;
|
import javax.persistence.Table;
|
import javax.persistence.Temporal;
|
import javax.persistence.TemporalType;
|
|
import org.hibernate.annotations.GenericGenerator;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
/**
|
* HandoutConverTask generated by hbm2java
|
*/
|
@Entity
|
@Table(name = "handout_conver_task")
|
public class HandoutConverTask implements java.io.Serializable {
|
private static final long serialVersionUID = -8930342549317530970L;
|
private String taskId;
|
private String handoutId;
|
private String handoutUrl;
|
private Integer status;
|
private boolean deleteFlag;
|
private Date createTime;
|
private Date updateTime;
|
/*
|
* 草稿
|
*/
|
public static final Integer STATUS_DRAFT = 0;
|
|
/*
|
* 转码中
|
*/
|
public static final Integer STATUS_TRANSFORMING = 1;
|
|
/*
|
* 已发布
|
*/
|
public static final Integer STATUS_PUBLISHED = 2;
|
|
/*
|
* 已下架
|
*/
|
public static final Integer STATUS_TAKEOFF = 3;
|
|
/*
|
* 转码失败
|
*/
|
public static final Integer STATUS_TRANSFAILED = 4;
|
|
/*
|
* 排队中
|
*/
|
public static final Integer STATUS_LINEUP = 5;
|
|
public HandoutConverTask() {
|
}
|
|
public HandoutConverTask(String taskId, String handoutId, Date createTime, Date updateTime) {
|
this.taskId = taskId;
|
this.handoutId = handoutId;
|
this.createTime = createTime;
|
this.updateTime = updateTime;
|
}
|
|
public HandoutConverTask(String taskId, String handoutId, String handoutUrl, Integer status, boolean deleteFlag,
|
Date createTime, Date updateTime) {
|
this.taskId = taskId;
|
this.handoutId = handoutId;
|
this.handoutUrl = handoutUrl;
|
this.status = status;
|
this.deleteFlag = deleteFlag;
|
this.createTime = createTime;
|
this.updateTime = updateTime;
|
}
|
|
@Id
|
@GeneratedValue(generator = "hibernate-uuid")
|
@GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
|
@Column(name = "task_id", unique = true, nullable = false, length = 36)
|
public String getTaskId() {
|
return this.taskId;
|
}
|
|
public void setTaskId(String taskId) {
|
this.taskId = taskId;
|
}
|
|
@Column(name = "handout_id", nullable = false, length = 36)
|
public String getHandoutId() {
|
return this.handoutId;
|
}
|
|
public void setHandoutId(String handoutId) {
|
this.handoutId = handoutId;
|
}
|
|
@Column(name = "handout_url")
|
public String getHandoutUrl() {
|
return this.handoutUrl;
|
}
|
|
public void setHandoutUrl(String handoutUrl) {
|
this.handoutUrl = handoutUrl;
|
}
|
|
@Column(name = "status")
|
public Integer getStatus() {
|
return this.status;
|
}
|
|
public void setStatus(Integer status) {
|
this.status = status;
|
}
|
|
@Column(name = "delete_flag")
|
public boolean getDeleteFlag() {
|
return this.deleteFlag;
|
}
|
|
public void setDeleteFlag(boolean deleteFlag) {
|
this.deleteFlag = deleteFlag;
|
}
|
|
@Column(name = "create_time", nullable = false, length = 19)
|
@Temporal(TemporalType.TIMESTAMP)
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonIgnore
|
public Date getCreateTime() {
|
return this.createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
@Column(name = "update_time", nullable = false, length = 19)
|
@Temporal(TemporalType.TIMESTAMP)
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonIgnore
|
public Date getUpdateTime() {
|
return this.updateTime;
|
}
|
|
public void setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
}
|