SectionSpeed.java
1.79 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
package com.bsth.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
/**
* @description TODO(路段限速)
*
* @author bsth@lq
*
* @date 2016年9月14日 14:15:42
*/
@Entity
@Table(name = "bsth_c_sectionspeed")
public class SectionSpeed {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
// 线路信息
@ManyToOne
private Line line;
@ManyToOne
private Road road;
/** 线路编码 */
private String lineCode;
private String roadCode;
/** 方向*/
private Integer directions;
/** 序号*/
private Integer code;
/** 路段名称 */
private String sName;
public String getRoadCode() {
return roadCode;
}
public void setRoadCode(String roadCode) {
this.roadCode = roadCode;
}
public Road getRoad() {
return road;
}
public void setRoad(Road road) {
this.road = road;
}
public Integer getDirections() {
return directions;
}
public void setDirections(Integer directions) {
this.directions = directions;
}
public Integer getCode() {
return code;
}
public void setCode(Integer code) {
this.code = code;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Line getLine() {
return line;
}
public void setLine(Line line) {
this.line = line;
}
public String getLineCode() {
return lineCode;
}
public void setLineCode(String lineCode) {
this.lineCode = lineCode;
}
public String getsName() {
return sName;
}
public void setsName(String sName) {
this.sName = sName;
}
}