package org.well.well.domain;

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

@Entity
@Table(name = "data_temp_hum")
public class TempHumi implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private long id;
	private String devCode;
	private String wellCode;
	private Date upTime;
    private Date logTime;
	private String temperature;
	private String humidity;
	private String descn;
	private String cell;
    private String pci;
    private String rsrp;
    private String snr;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "ID")
	public long getId()
	{
		return id;
	}
	public void setId(long id)
	{
		this.id = id;
	}

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

    public void setDevCode(String devCode) {
        this.devCode = devCode;
    }
    @Column(name = "UPTIME")
	public Date getUpTime()
	{
		return upTime;
	}
	public void setUpTime(Date upTime)
	{
		this.upTime = upTime;
	}

    @Column(name = "LOGTIME")
    public Date getLogTime() {
        return logTime;
    }
    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }

    @Column(name = "TEMPERATURE")
    public String getTemperature() {
        return temperature;
    }

    public void setTemperature(String temperature) {
        this.temperature = temperature;
    }

    @Column(name = "HUMIDITY")
    public String getHumidity() {
        return humidity;
    }

    public void setHumidity(String humidity) {
        this.humidity = humidity;
    }

    @Column(name = "CELL")
    public String getCell() {
        return cell;
    }

    public void setCell(String cell) {
        this.cell = cell;
    }

    @Column(name = "DESCN")
    public String getDescn() {
        return descn;
    }

    public void setDescn(String descn) {
        this.descn = descn;
    }

    @Column(name = "WELL_CODE")
    public String getWellCode() {
        return wellCode;
    }

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

    @Column(name = "PCI")
    public String getPci() {
        return pci;
    }

    public void setPci(String pci) {
        this.pci = pci;
    }

    @Column(name = "RSRP")
    public String getRsrp() {
        return rsrp;
    }

    public void setRsrp(String rsrp) {
        this.rsrp = rsrp;
    }

    @Column(name = "SNR")
    public String getSnr() {
        return snr;
    }

    public void setSnr(String snr) {
        this.snr = snr;
    }

    public TempHumi(String devCode, String wellCode,Date upTime,
                    String temperature, String humidity, String cell) {
        this.devCode = devCode;
        this.wellCode = wellCode;
        this.upTime = upTime;
        this.temperature = temperature;
        this.humidity = humidity;
        this.cell = cell;
        this.logTime = new Date();
    }
}
