package com.example.MeteoStarSpring.models;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
public class Post {

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

    private double vlashnost, temp;
    private String data;
    private int svet;

    public Long getId() {
        return id;
    }

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

    public int getSvet() {
        return svet;
    }

    public void setSvet(int svet) {
        this.svet = svet;
    }

    public double getVlashnost() {
        return vlashnost;
    }

    public void setVlashnost(double vlashnost) {
        this.vlashnost = vlashnost;
    }

    public double getTemp() {
        return temp;
    }

    public void setTemp(double temp) {
        this.temp = temp;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public Post(int svet, double vlashnost, double temp, String data) {
        this.svet = svet;
        this.vlashnost = vlashnost;
        this.temp = temp;
        this.data = data;
    }

    public Post() {
    }
}

