package app.DAO;

import javax.persistence.*;

/**
 * Created by Petr Flégl on 3.10.2016.
 */
@Entity
@Table(name="table1")
public class Table1 {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "IdVah")
    int IdVah;
    @Column(name = "kukurice")
    double Kukurice;
    @Column(name = "senaz")
    double Senaz;
    @Column
    double Rizky;
    @Column
    double Trava;
    @Column
    double Kejda;
    @Column
    double Digestat;

    public int getDatumDavky() {
        return DatumDavky;
    }

    public void setDatumDavky(int datumDavky) {
        DatumDavky = datumDavky;
    }

    @Column
    int DatumDavky;

    public double getDavka() {
        return Davka;
    }

    public void setDavka(double davka) {
        Davka = davka;
    }

    @Column
    double Davka;

    static final String [] SETTERS = {"setIdVah", "setKukurice", "setSenaz", "setRizky", "setTrava", "setKejda", "setDigestat", "setDavka", "setDatumDavky"};
    static final String [] GETTERS = {"getIdVah", "getKukurice", "getSenaz", "getRizky", "getTrava", "getKejda", "getDigestat", "getDavka", "getDatumDavky"};

    public int getIdVah() {
        return IdVah;
    }

    public void setIdVah(int idVah) {
        IdVah = idVah;
    }

    public double getKukurice() {
        return Kukurice;
    }

    public void setKukurice(double kukurice) {
        Kukurice = kukurice;
    }

    public double getSenaz() {
        return Senaz;
    }

    public void setSenaz(double senaz) {
        Senaz = senaz;
    }

    public double getRizky() {
        return Rizky;
    }

    public void setRizky(double rizky) {
        Rizky = rizky;
    }

    public double getTrava() {
        return Trava;
    }

    public void setTrava(double trava) {
        Trava = trava;
    }

    public double getKejda() {
        return Kejda;
    }

    public void setKejda(double kejda) {
        Kejda = kejda;
    }

    public double getDigestat() {
        return Digestat;
    }

    public void setDigestat(double digestat) {
        Digestat = digestat;
    }
}
