package app.DAO;

import javax.persistence.*;

/**
 * Created by Petr Flégl on 3.10.2016.
 */
@Entity
@Table(name = "table2")
public class Table2 {
        @Id
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        @Column(name = "IdVytez")
        int idVytez;
        @Column
        double kukuriceV;
        @Column
        double senazV;
        @Column
        double rizkyV;
        @Column
        double travaV;
        @Column
        double kejdaV;
        @Column
        double celkVytez;

    public int getDatumVytez() {
        return datumVytez;
    }

    public void setDatumVytez(int datumVytez) {
        this.datumVytez = datumVytez;
    }

    @Column
        int datumVytez;

    static final String [] SETTERS = {"setIdVytez", "setKukuriceV", "setSenazV", "setRizkyV", "setTravaV", "setKejdaV", "setCelkVytez", "setDatumVytez"};
    static final String [] GETTERS = {"getIdVytez", "getKukuriceV", "getSenazV", "getRizkyV", "getTravaV", "getKejdaV", "getCelkVytez", "getDatumVytez"};

    public int getIdVytez() {
        return idVytez;
    }

    public void setIdVytez(int idVytez) {
        this.idVytez = idVytez;
    }

    public double getKukuriceV() {
        return kukuriceV;
    }

    public void setKukuriceV(double kukuriceV) {
        this.kukuriceV = kukuriceV;
    }

    public double getSenazV() {
        return senazV;
    }

    public void setSenazV(double senazV) {
        this.senazV = senazV;
    }

    public double getRizkyV() {
        return rizkyV;
    }

    public void setRizkyV(double rizkyV) {
        this.rizkyV = rizkyV;
    }

    public double getTravaV() {
        return travaV;
    }

    public void setTravaV(double travaV) {
        this.travaV = travaV;
    }

    public double getKejdaV() {
        return kejdaV;
    }

    public void setKejdaV(double kejdaV) {
        this.kejdaV = kejdaV;
    }
    public double getCelkVytez() {
        return celkVytez;
    }

    public void setCelkVytez(double celkVytez) {
        this.celkVytez = celkVytez;
    }



}