package com.njcn.pojo.data;

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

/**
 * 
 * 变电站经纬度，适用于终端
 * */
@Table(name="PQS_MAP")
public class Maps {

	@Id
	@Column(name="MAP_INDEX")
	private String mapIndex;
	
	@Column(name="SUB_INDEX")
	private Long subIndex;
	
	@Column(name="GD_INDEX")
	private Long gdIndex;
	
	//经度
	@Column(name="LONGITUDE")
	private Float longItude;
	
	//纬度
	@Column(name="LATITUDE")
	private Float latItude;
	
	//数据状态
	@Column(name="STATE")
	private Long state;
	
	//用户ID
	@Column(name="USER_INDEX")
	private String userIndex;
	
	//更新时间
	@Column(name="UPDATETIME")
	private Date updateTime;

	public String getMapIndex() {
		return mapIndex;
	}

	public void setMapIndex(String mapIndex) {
		this.mapIndex = mapIndex;
	}

	public Long getSubIndex() {
		return subIndex;
	}

	public void setSubIndex(Long subIndex) {
		this.subIndex = subIndex;
	}

	public Long getGdIndex() {
		return gdIndex;
	}

	public void setGdIndex(Long gdIndex) {
		this.gdIndex = gdIndex;
	}

	public Float getLongItude() {
		return longItude;
	}

	public void setLongItude(Float longItude) {
		this.longItude = longItude;
	}

	public Float getLatItude() {
		return latItude;
	}

	public void setLatItude(Float latItude) {
		this.latItude = latItude;
	}

	public Long getState() {
		return state;
	}

	public void setState(Long state) {
		this.state = state;
	}

	public String getUserIndex() {
		return userIndex;
	}

	public void setUserIndex(String userIndex) {
		this.userIndex = userIndex;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "Map [mapIndex=" + mapIndex + ", subIndex=" + subIndex + ", gdIndex=" + gdIndex + ", longItude="
				+ longItude + ", latItude=" + latItude + ", state=" + state + ", userIndex=" + userIndex + 
				", updateTime=" + updateTime + "]";
	}
	
	
}
