package app.DAO;

import javax.persistence.*;

/**
 * Created by Petr Flégl on 1.4.2017.
 */
@Entity
@Table(name = "calendarEvent")
public class CalendarEvent {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "IdC")
    int idC;
    @Column
    long timeStamp;
    @Column
    String popis;
    @Column
    boolean visible;

    static final String [] SETTERS = {"setIdC", "setTimeStamp", "setPopis", "setVisible"};
    static final String [] GETTERS = {"getIdC", "getTimeStamp", "getPopis", "getVisible"};

    public boolean isVisible() {
        return visible;
    }

    public void setVisible(boolean visible) {
        this.visible = visible;
    }

    public String getPopis() {
        return popis;
    }

    public void setPopis(String popis) {
        this.popis = popis;
    }

    public long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(long timeStamp) {
        this.timeStamp = timeStamp;
    }

    public int getIdC() {
        return idC;
    }

    public void setIdC(int idC) {
        this.idC = idC;
    }

}
