Detour.java
2.41 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
package com.bsth.entity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
/**
* 绕改道实体类
* 对应数据库表 bsth_c_detour
*/
@Entity
@Table(name = "bsth_c_detour")
@DynamicInsert
@DynamicUpdate
@JsonIgnoreProperties(ignoreUnknown = true)
public class Detour {
// 主键
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
// 线路
private Integer line;
// 版本号
@JsonIgnore
private Integer versions;
// 上下行
private Integer direction;
// 起点编码
@JsonIgnore
private String startStationCode;
@Transient
private int startIdx;
// 终点编码
@JsonIgnore
private String terminalStationCode;
@Transient
private int terminalIdx;
// 路段wgs84点位
private String points;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getLine() {
return line;
}
public void setLine(Integer line) {
this.line = line;
}
public Integer getVersions() {
return versions;
}
public void setVersions(Integer versions) {
this.versions = versions;
}
public Integer getDirection() {
return direction;
}
public void setDirection(Integer direction) {
this.direction = direction;
}
public String getStartStationCode() {
return startStationCode;
}
public void setStartStationCode(String startStationCode) {
this.startStationCode = startStationCode;
}
public int getStartIdx() {
return startIdx;
}
public void setStartIdx(int startIdx) {
this.startIdx = startIdx;
}
public String getTerminalStationCode() {
return terminalStationCode;
}
public void setTerminalStationCode(String terminalStationCode) {
this.terminalStationCode = terminalStationCode;
}
public int getTerminalIdx() {
return terminalIdx;
}
public void setTerminalIdx(int terminalIdx) {
this.terminalIdx = terminalIdx;
}
public String getPoints() {
return points;
}
public void setPoints(String points) {
this.points = points;
}
}