LsStationRoute.java 5.72 KB
package com.bsth.entity;

import javax.persistence.*;
import java.util.Date;

/**
 *
 * @ClassName : StationRoute(历史站点路由实体类)
 *
 * @Author : bsth@lq
 *
 * @Description : TODO(历史站点路由)
 *
 * @Version 公交调度系统BS版 0.1
 *
 */

@Entity
@Table(name = "bsth_c_ls_stationroute")
@NamedEntityGraphs({
        @NamedEntityGraph(name = "ls_stationRoute_station", attributeNodes = {
                @NamedAttributeNode("station"),
                @NamedAttributeNode("line")
        })
})
public class LsStationRoute {

    //站点路由ID
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    // 站点路由序号
    private Integer stationRouteCode;

    // 站点编码
    private String stationCode;

    // 站点名称
    private String stationName;

    // 线路编码
    private String lineCode;

    // 行业编码
    private String industryCode;
    /**
     * 站点类型
     *
     * ------ B:起点站
     *
     * ------ Z:中途站
     *
     * ------ E:终点站
     *
     * ------ T:停车场
     *
     */
    private String stationMark;

    // 站点路由出站序号
    private Integer outStationNmber;

    // 站点路由到站距离
    private Double distances;

    // 站点路由到站时间
    private Double toTime;

    // 首班时间
    private String firstTime;

    // 末班时间
    private String endTime;

    // 站点路由方向
    private Integer directions;

    // 版本号
    private Integer versions;

    // 是否撤销
    private Integer destroy;

    // 描述
    private String descriptions;

    // 创建人
    private Integer createBy;

    // 修改人
    private Integer updateBy;

    // 创建日期
//    @Column(updatable = false, name = "create_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Column(updatable = false, name = "create_date")
    private Date createDate;

    // 修改日期
//    @Column(name = "update_date", columnDefinition = "timestamp  DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
    @Column(name = "update_date")
    private Date updateDate;

    // 站点信息
    @ManyToOne(fetch = FetchType.LAZY)
    private Station station;

    // 线路信息
    @ManyToOne
    private Line line;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStationRouteCode() {
        return stationRouteCode;
    }

    public void setStationRouteCode(Integer stationRouteCode) {
        this.stationRouteCode = stationRouteCode;
    }

    public String getStationCode() {
        return stationCode;
    }

    public void setStationCode(String stationCode) {
        this.stationCode = stationCode;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public String getLineCode() {
        return lineCode;
    }

    public void setLineCode(String lineCode) {
        this.lineCode = lineCode;
    }

    public String getIndustryCode() {
        return industryCode;
    }

    public void setIndustryCode(String industryCode) {
        this.industryCode = industryCode;
    }

    public String getStationMark() {
        return stationMark;
    }

    public void setStationMark(String stationMark) {
        this.stationMark = stationMark;
    }

    public Integer getOutStationNmber() {
        return outStationNmber;
    }

    public void setOutStationNmber(Integer outStationNmber) {
        this.outStationNmber = outStationNmber;
    }

    public Double getDistances() {
        return distances;
    }

    public void setDistances(Double distances) {
        this.distances = distances;
    }

    public Double getToTime() {
        return toTime;
    }

    public void setToTime(Double toTime) {
        this.toTime = toTime;
    }

    public String getFirstTime() {
        return firstTime;
    }

    public void setFirstTime(String firstTime) {
        this.firstTime = firstTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Integer getDirections() {
        return directions;
    }

    public void setDirections(Integer directions) {
        this.directions = directions;
    }

    public Integer getVersions() {
        return versions;
    }

    public void setVersions(Integer versions) {
        this.versions = versions;
    }

    public Integer getDestroy() {
        return destroy;
    }

    public void setDestroy(Integer destroy) {
        this.destroy = destroy;
    }

    public String getDescriptions() {
        return descriptions;
    }

    public void setDescriptions(String descriptions) {
        this.descriptions = descriptions;
    }

    public Integer getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }

    public Integer getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Integer updateBy) {
        this.updateBy = updateBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Station getStation() {
        return station;
    }

    public void setStation(Station station) {
        this.station = station;
    }

    public Line getLine() {
        return line;
    }

    public void setLine(Line line) {
        this.line = line;
    }
}