SKBUploadLogger.java 2.56 KB
package com.bsth.entity.traffic;

import com.bsth.entity.Line;
import com.bsth.entity.sys.SysUser;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import javax.persistence.*;
import java.util.Date;

/**
 * 
 * @ClassName : SKBUploadLogger(时刻表上传日志实体类)
 * 
 * @Author : bsth@zq
 * 
 * @Description :
 * 
 * @Data : 2016-04-27
 *
 * @Version 公交调度系统BS版 0.1
 * 
 */

@Entity
@Table(name = "bsth_t_upload_logger")
@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","fieldHandler"})
public class SKBUploadLogger {

	// ID
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	/** 时刻表信息 */
	@ManyToOne(optional = false, cascade = CascadeType.DETACH, fetch = FetchType.LAZY)
	private Line line;

	/** 用户 关联 */
	@ManyToOne(optional = false, cascade = CascadeType.DETACH, fetch = FetchType.LAZY)
	private SysUser user;

	// 创建日期
	@Column(updatable = false, name = "create_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
	private Date createDate;

	// 上传的参数
	@Column( name = "upload_xml" , columnDefinition="TEXT")
	private String uploadXml;

	// 上传的参数2
	@Column( name = "upload_xml_sub" , columnDefinition="TEXT")
	private String uploadXmlSub;

	// 日志类型 1:时刻表;2:上传线路;3:上传路单
	private String type;

	// 模板名称
	private String name;

	// 上传状态:是否成功 1:成功;0:失败
	private String state;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public SysUser getUser() {
		return user;
	}

	public void setUser(SysUser user) {
		this.user = user;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) { this.createDate = createDate; }

	public String getUploadXml() { return uploadXml; }

	public void setUploadXml(String uploadXml) { this.uploadXml = uploadXml; }

	public String getState() { return state; }

	public void setState(String state) { this.state = state; }

	public Line getLine() {	return line;}

	public void setLine(Line line) { this.line = line; }

	public String getType() { return type; }

	public void setType(String type) {	this.type = type; }

	public String getName() { return name;	}

	public void setName(String name) {	this.name = name; }

	public String getUploadXmlSub() {return uploadXmlSub;}

	public void setUploadXmlSub(String uploadXmlSub) {this.uploadXmlSub = uploadXmlSub;	}
}