package com.huimv.env.dao.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

@Entity
@Table(name = "environment_data")
public class EnvironmentDataEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false)
    private Integer id;

    @Column(name = "ad")
    private String ad;

    @Column(name = "date", nullable = false)
    private String date;

    @Column(name = "date_time")
    private String dateTime;

    @Column(name = "hour")
    private Integer hour;

    @Column(name = "hxxyl")
    private String hxxyl;

    @Column(name = "ph")
    private String ph;

    @Column(name = "qn")
    private String qn;

    @Column(name = "write_time")
    private Timestamp writeTime;

    @Column(name = "ws")
    private Float ws;

    @Column(name = "wslj")
    private Float wslj;

    @Column(name = "zd")
    private String zd;

    @Column(name = "zl")
    private String zl;

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

    public Integer getId() {
        return id;
    }

    public void setAd(String ad) {
        this.ad = ad;
    }

    public String getAd() {
        return ad;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getDate() {
        return date;
    }

    public void setDateTime(String dateTime) {
        this.dateTime = dateTime;
    }

    public String getDateTime() {
        return dateTime;
    }

    public void setHour(Integer hour) {
        this.hour = hour;
    }

    public Integer getHour() {
        return hour;
    }

    public void setHxxyl(String hxxyl) {
        this.hxxyl = hxxyl;
    }

    public String getHxxyl() {
        return hxxyl;
    }

    public void setPh(String ph) {
        this.ph = ph;
    }

    public String getPh() {
        return ph;
    }

    public void setQn(String qn) {
        this.qn = qn;
    }

    public String getQn() {
        return qn;
    }

    public void setWriteTime(Timestamp writeTime) {
        this.writeTime = writeTime;
    }

    public Timestamp getWriteTime() {
        return writeTime;
    }

    public void setWs(Float ws) {
        this.ws = ws;
    }

    public Float getWs() {
        return ws;
    }

    public void setWslj(Float wslj) {
        this.wslj = wslj;
    }

    public Float getWslj() {
        return wslj;
    }

    public void setZd(String zd) {
        this.zd = zd;
    }

    public String getZd() {
        return zd;
    }

    public void setZl(String zl) {
        this.zl = zl;
    }

    public String getZl() {
        return zl;
    }

    @Override
    public String toString() {
        return "EnvironmentDataEntity{" +
                "id=" + id + '\'' +
                "ad=" + ad + '\'' +
                "date=" + date + '\'' +
                "dateTime=" + dateTime + '\'' +
                "hour=" + hour + '\'' +
                "hxxyl=" + hxxyl + '\'' +
                "ph=" + ph + '\'' +
                "qn=" + qn + '\'' +
                "writeTime=" + writeTime + '\'' +
                "ws=" + ws + '\'' +
                "wslj=" + wslj + '\'' +
                "zd=" + zd + '\'' +
                "zl=" + zl + '\'' +
                '}';
    }
}
