StationToPark.java
2.51 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
package com.bsth.entity.realcontrol;
import javax.persistence.*;
/**
* 站 到 场
* Created by panzhao on 2017/7/10.
*/
@Entity
@Table(name = "bsth_c_station_to_park")
public class StationToPark {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/** 线路编码 */
private String lineCode;
/** 站点名称 */
private String stationName;
/** 停车场编码 */
private String parkName;
/** 站到场时间(分钟) */
private Float time1;
/** 站到场公里 */
private Float mileage1;
/** 场到站时间(分钟) */
private Float time2;
/** 场到站公里 */
private Float mileage2;
/** 排序字段 */
private int orderNo;
public String getLineCode() {
return lineCode;
}
public void setLineCode(String lineCode) {
this.lineCode = lineCode;
}
public String getStationName() {
return stationName;
}
public void setStationName(String stationName) {
this.stationName = stationName;
}
public Float getTime1() {
return time1;
}
public void setTime1(Float time1) {
this.time1 = time1;
}
public Float getMileage1() {
return mileage1;
}
public void setMileage1(Float mileage1) {
this.mileage1 = mileage1;
}
public Float getTime2() {
return time2;
}
public void setTime2(Float time2) {
this.time2 = time2;
}
public Float getMileage2() {
return mileage2;
}
public void setMileage2(Float mileage2) {
this.mileage2 = mileage2;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public int getOrderNo() {
return orderNo;
}
public void setOrderNo(int orderNo) {
this.orderNo = orderNo;
}
public String getParkName() {
return parkName;
}
public void setParkName(String parkName) {
this.parkName = parkName;
}
@Override
public int hashCode() {
return ("stp_" + this.toString()).hashCode();
}
@Override
public boolean equals(Object obj) {
return this.toString().equals(((StationToPark)obj).toString());
}
@Override
public String toString() {
return this.lineCode + "_" + this.getStationName() + "_" + this.getParkName();
}
}