package cz.utb.tadis.charts.model;

import javax.persistence.*;

@Entity
@Table(name = "chart_data")
public class ChartData {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Enumerated(EnumType.STRING)
    private ChartAxis x;

    @Enumerated(EnumType.STRING)
    private ChartAxis y;

    @Enumerated(EnumType.STRING)
    private ChartAxis z;

    private Integer xInterval;

    public ChartData() {
    }

    public ChartData(ChartAxis x, ChartAxis y, ChartAxis z, Integer xInterval) {
        this.x = x;
        this.y = y;
        this.z = z;
        this.xInterval = xInterval;
    }

    public Long getId() {
        return id;
    }

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

    public ChartAxis getX() {
        return x;
    }

    public void setX(ChartAxis x) {
        this.x = x;
    }

    public ChartAxis getY() {
        return y;
    }

    public void setY(ChartAxis y) {
        this.y = y;
    }

    public ChartAxis getZ() {
        return z;
    }

    public void setZ(ChartAxis z) {
        this.z = z;
    }

    public Integer getxInterval() {
        return xInterval;
    }

    public void setxInterval(Integer xInterval) {
        this.xInterval = xInterval;
    }
}
