Station.java 4.34 KB
package com.bsth.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;


/**
 * 
 * @ClassName : Station(站点实体类)
 * 
 * @Author : bsth@lq
 * 
 * @Description : TODO(站点)
 * 
 * @Data :2016-04-19
 *
 * @Version 公交调度系统BS版 0.1
 * 
 */

@Entity
@Table(name = "bsth_c_station")
@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","fieldHandler"})
public class Station {
	
	@Id
	/*@GeneratedValue(strategy = GenerationType.IDENTITY)*/
	private Integer id;
	
	// 站点编码
	private String stationCode;

	/**
	 * 经纬坐标类型 
	 * 
	 * --------- b:百度坐标系
	 * 
	 * --------- d:高德坐标系
	 */
	private String dbType;
	
	// 百度经纬度坐标
	private String bJwpoints;
	
	// 站点地理位置WGS坐标经度
	private Float gLonx;
	
	// 站点地理位置WGS坐标纬度
	private Float gLaty;

	/** 是否有电子站牌 这里是老调度系统的原始字段,暂时保留该字段。 */
	private Integer isHaveLed;
	
	/** 是否有候车亭  这里是老调度系统的原始字段,暂时保留该字段。*/
	private Integer isHaveShelter;
	
	/** 是否港湾式公交站  这里是老调度系统的原始字段,暂时保留该字段。*/
	private Integer isHarbourStation;
	
	// 描述
	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;
	
	public Integer getIsHaveLed() {
		return isHaveLed;
	}

	public void setIsHaveLed(Integer isHaveLed) {
		this.isHaveLed = isHaveLed;
	}

	public Integer getIsHaveShelter() {
		return isHaveShelter;
	}

	public void setIsHaveShelter(Integer isHaveShelter) {
		this.isHaveShelter = isHaveShelter;
	}

	public Integer getIsHarbourStation() {
		return isHarbourStation;
	}

	public void setIsHarbourStation(Integer isHarbourStation) {
		this.isHarbourStation = isHarbourStation;
	}

	public Integer getId() {
		return id;
	}

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

	public String getStationCode() {
		return stationCode;
	}

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

	public String getDbType() {
		return dbType;
	}

	public void setDbType(String dbType) {
		this.dbType = dbType;
	}
	
	public String getbJwpoints() {
		return bJwpoints;
	}

	public void setbJwpoints(String bJwpoints) {
		this.bJwpoints = bJwpoints;
	}

	public Float getgLonx() {
		return gLonx;
	}

	public void setgLonx(Float gLonx) {
		this.gLonx = gLonx;
	}

	public Float getgLaty() {
		return gLaty;
	}

	public void setgLaty(Float gLaty) {
		this.gLaty = gLaty;
	}

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

	@Override
	public String toString() {
		return "Station [id=" + id + ", stationCode=" + stationCode + ", dbType=" + dbType + ", bJwpoints=" + bJwpoints + ", gLonx=" + gLonx
				+ ", gLaty=" + gLaty + ", isHaveLed=" + isHaveLed + ", isHaveShelter="
				+ isHaveShelter + ", isHarbourStation=" + isHarbourStation + ", descriptions=" + descriptions
				+ ", createBy=" + createBy + ", updateBy=" + updateBy + ", createDate=" + createDate + ", updateDate="
				+ updateDate + "]";
	}
	
}