SectionSpeed.java 1.79 KB
package com.bsth.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @description TODO(路段限速)
 * 
 * @author bsth@lq
 *
 * @date 2016年9月14日 14:15:42
 */


@Entity
@Table(name = "bsth_c_sectionspeed")
public class SectionSpeed {
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	
	// 线路信息
	@ManyToOne
	private Line line;
	
	@ManyToOne
	private Road road;
	
	/** 线路编码 */
	private String lineCode;
	
	private String roadCode;
	
	/** 方向*/
	private Integer directions;
	
	/** 序号*/
	private Integer code;
	
	/** 路段名称 */
	private String sName;
	
	public String getRoadCode() {
		return roadCode;
	}

	public void setRoadCode(String roadCode) {
		this.roadCode = roadCode;
	}

	public Road getRoad() {
		return road;
	}

	public void setRoad(Road road) {
		this.road = road;
	}

	public Integer getDirections() {
		return directions;
	}

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

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public Integer getId() {
		return id;
	}

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

	public Line getLine() {
		return line;
	}

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

	public String getLineCode() {
		return lineCode;
	}

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

	public String getsName() {
		return sName;
	}

	public void setsName(String sName) {
		this.sName = sName;
	}
 
}