package com.huimv.environ.env.environ.dao.entity;

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

@Entity
@Table(name = "env_day")
public class EnvDayEntity implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @Column(name = "farm_id")
    private Integer farmId;

    @Column(name = "add_date")
    private Date addDate;

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

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

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

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

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

    public Integer getId() {
        return id;
    }

    public void setFarmId(Integer farmId) {
        this.farmId = farmId;
    }

    public Integer getFarmId() {
        return farmId;
    }

    public Date getAddDate() {
        return addDate;
    }

    public void setAddDate(Date addDate) {
        this.addDate = addDate;
    }

    public void setCod(String cod) {
        this.cod = cod;
    }

    public String getCod() {
        return cod;
    }

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

    public String getAd() {
        return ad;
    }

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

    public String getPh() {
        return ph;
    }

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

    public String getWs() {
        return ws;
    }

    @Override
    public String toString() {
        return "EnvDayEntity{" +
                "id=" + id +
                ", farmId=" + farmId +
                ", addDate=" + addDate +
                ", cod='" + cod + '\'' +
                ", ad='" + ad + '\'' +
                ", ph='" + ph + '\'' +
                ", ws='" + ws + '\'' +
                '}';
    }
}
