package org.well.well.domain;

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


@Entity
@Table(name = "data_wellcover_loca")
public class Locator implements Serializable {
	/**
	 *
	 */
	private static final long serialVersionUID = 429994083551525856L;
	private Long dbId;
	private String devCode;
	private String wellCode;
	private String longitude;
	private String latitude;
	private Date logtime;
	private Date upTime;


	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID")
	public Long getDbId() {
		return dbId;
	}
	public void setDbId(Long dbId) {
		this.dbId = dbId;
	}

	@Column(name = "DEVCODE")
	public String getDevCode() {
		return devCode;
	}

	public void setDevCode(String devCode) {
		this.devCode = devCode;
	}


	@Column(name = "LNG")
	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	@Column(name = "LAT")
	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	@Column(name = "LOGTIME")
	public Date getLogtime() {
		return logtime;
	}
	public void setLogtime(Date logtime) {
		this.logtime = logtime;
	}

	@Column(name = "UPTIME")
	public Date getUpTime() {
		return upTime;
	}

	public void setUpTime(Date upTime) {
		this.upTime = upTime;
	}
	@Column(name = "WELL_CODE")
	public String getWellCode() {
		return wellCode;
	}

	public void setWellCode(String wellCode) {
		this.wellCode = wellCode;
	}

	public Locator(String devCode, String wellCode,String longitude, String latitude) {
		this.devCode = devCode;
		this.wellCode = wellCode;
		this.latitude = latitude;
		this.longitude = longitude;
		this.logtime = new Date();
	}
}
