ScheduleRule1Flat.java
4.05 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
package com.bsth.entity.schedule.rule;
import com.bsth.entity.Line;
import com.bsth.entity.schedule.BEntity;
import com.bsth.entity.schedule.CarConfigInfo;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.Date;
/**
* 排班规则1(flat,路牌,人员都不关联表,全部保存相关id),
* 基于老系统的规则设定实体,
* 有所谓的路牌范围,就是关联多个路牌
* 有所谓的人员返回,就是关联多个人(可能带早晚班)
* 有起始路牌,起始人员,翻班格式
*/
@Entity
@Table(name = "bsth_c_s_sr1_flat")
@NamedEntityGraphs({
@NamedEntityGraph(
name = "scheduleRule1Flat_xl_carconfig",
attributeNodes = {
@NamedAttributeNode("xl"),
@NamedAttributeNode(value = "carConfigInfo", subgraph = "carConfigInfo_cl")
},
subgraphs = {
@NamedSubgraph(
name = "carConfigInfo_cl",
attributeNodes = {
@NamedAttributeNode("cl")
}
)
}
)
})
public class ScheduleRule1Flat extends BEntity {
/** 主键Id */
@Id
@GeneratedValue
private Long id;
/** 关联线路 */
@ManyToOne(optional = false, cascade = CascadeType.DETACH, fetch = FetchType.LAZY)
private Line xl;
/** 关联车辆配置id */
@ManyToOne(optional = false, cascade = CascadeType.DETACH, fetch = FetchType.LAZY)
private CarConfigInfo carConfigInfo;
/** 启用日期 */
@NotNull
private Date qyrq;
/** 路牌名称s(用逗号隔开) */
@NotNull
private String lpNames;
/** 对应的路牌ids(用逗号隔开) */
@NotNull
@Column(length = 1000)
private String lpIds;
/** 起始路牌(从0开始) */
@NotNull
private Integer lpStart;
/** 人员搭班编码s(用逗号隔开,如果分班,就先-隔开再逗号隔开) */
@NotNull
private String ryDbbms;
/** 对应的人员配置ids(用逗号隔开,如果分班,就先-隔开再逗号隔开) */
@NotNull
@Column(length = 1000)
private String ryConfigIds;
/** 起始人员(从0开始) */
@NotNull
private Integer ryStart;
/** 翻班格式(类似格式:1110011)*/
private String fbgs;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Line getXl() {
return xl;
}
public void setXl(Line xl) {
this.xl = xl;
}
public CarConfigInfo getCarConfigInfo() {
return carConfigInfo;
}
public void setCarConfigInfo(CarConfigInfo carConfigInfo) {
this.carConfigInfo = carConfigInfo;
}
public Date getQyrq() {
return qyrq;
}
public void setQyrq(Date qyrq) {
this.qyrq = qyrq;
}
public String getLpNames() {
return lpNames;
}
public void setLpNames(String lpNames) {
this.lpNames = lpNames;
}
public String getLpIds() {
return lpIds;
}
public void setLpIds(String lpIds) {
this.lpIds = lpIds;
}
public Integer getLpStart() {
return lpStart;
}
public void setLpStart(Integer lpStart) {
this.lpStart = lpStart;
}
public String getRyDbbms() {
return ryDbbms;
}
public void setRyDbbms(String ryDbbms) {
this.ryDbbms = ryDbbms;
}
public String getRyConfigIds() {
return ryConfigIds;
}
public void setRyConfigIds(String ryConfigIds) {
this.ryConfigIds = ryConfigIds;
}
public Integer getRyStart() {
return ryStart;
}
public void setRyStart(Integer ryStart) {
this.ryStart = ryStart;
}
public String getFbgs() {
return fbgs;
}
public void setFbgs(String fbgs) {
this.fbgs = fbgs;
}
}