LsInoutSectionRoute.java 3.7 KB
package com.bsth.entity;

import org.hibernate.annotations.DynamicUpdate;

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


/**
 * 
 * @ClassName : LsInoutSectionRoute(历史进出场路段路由实体类)
 * 
 * @Author : bsth@lq
 * 
 * @Description : TODO(历史路段路由)
 *	
 * @Version 公交调度系统BS版 0.1
 * 
 */

@Entity
@Table(name = "bsth_c_ls_inout_sectionroute")
@DynamicUpdate
public class LsInoutSectionRoute {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	
	// 路段路由序号
	private Integer sectionrouteCode;
	
	// 线路编号
	private String lineCode;

	/**
	 * 进出场起点编码
	 */
	private String start;

	/**
	 * 进出场终点编码
	 */
	private String end;
	
	// 路段编号
	private String sectionCode;
	
	// 路段路由方向
	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")
	private Date createDate;
		
	// 修改日期
	@Column(name = "update_date", columnDefinition = "timestamp  DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
	private Date updateDate;
		
	// 路段信息
	@OneToOne
	private Section section;
	
	// 线路信息
	@ManyToOne
	private Line line;

	public Long getId() {
		return id;
	}

	public void setId(Long 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 getStart() {
		return start;
	}

	public void setStart(String start) {
		this.start = start;
	}

	public String getEnd() {
		return end;
	}

	public void setEnd(String end) {
		this.end = end;
	}

	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;
	}
}