SKBUploadLogger.java
2.45 KB
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
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; }
}