SectionRoute.java 3.86 KB
package com.bsth.entity;

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


/**
 *
 * @ClassName : SectionRoute(路段路由实体类)
 *
 * @Author : bsth@lq
 *
 * @Description : TODO(路段路由)
 *
 * @Data :2016-04-21
 *
 * @Version 公交调度系统BS版 0.1
 *
 */

@Entity
@Table(name = "bsth_c_sectionroute")
public class SectionRoute {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    // 路段路由序号
    private Integer sectionrouteCode;

    // 线路编号
    private String lineCode;

    // 路段编号
    private String sectionCode;

    // 路段路由方向
    private Integer directions;

    // 版本号
    private Integer versions;

    // 是否撤销
    private Integer destroy;

    /** 是否有路段限速数据  <0:分段;1:未分段>*/
    private Integer isRoadeSpeed;

    // 描述
    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;

    // 路段信息
    @OneToOne
    private Section section;

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

    public Integer getIsRoadeSpeed() {
        return isRoadeSpeed;
    }

    public void setIsRoadeSpeed(Integer isRoadeSpeed) {
        this.isRoadeSpeed = isRoadeSpeed;
    }

    public Integer getId() {
        return id;
    }

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

    public Integer getSectionrouteCode() {
        return sectionrouteCode;
    }

    public void setSectionrouteCode(Integer sectionrouteCode) {
        this.sectionrouteCode = sectionrouteCode;
    }

    public String getLineCode() {
        return lineCode;
    }

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

    public String getSectionCode() {
        return sectionCode;
    }

    public void setSectionCode(String sectionCode) {
        this.sectionCode = sectionCode;
    }

    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 Section getSection() {
        return section;
    }

    public void setSection(Section section) {
        this.section = section;
    }

    public Line getLine() {
        return line;
    }

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