package com.example.Vezba.model;

import javax.persistence.*;

@Entity
@Table(name = "ocene")
public class Ocena {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name="id_ocene")
    private Integer idOcene;

    @Column(nullable = false, unique = false, length = 45)
    private Integer ocena;

    @Column(name="id_ocenjivaca", nullable = true, unique = false, length = 45)
    private Integer idOcenjivaca;

    @Column(name="id_poslodavca", nullable = true, unique = false, length = 45)
    private Integer idPoslodavca;

    public Ocena(){

    }

    public Ocena(Integer ocena, Integer idOcenjivaca, Integer idPoslodavca) {
        this.ocena = ocena;
        this.idOcenjivaca = idOcenjivaca;
        this.idPoslodavca = idPoslodavca;
    }

    public Ocena(Integer idOcene, Integer ocena, Integer idOcenjivaca, Integer idPoslodavca) {
        this.idOcene = idOcene;
        this.ocena = ocena;
        this.idOcenjivaca = idOcenjivaca;
        this.idPoslodavca = idPoslodavca;
    }

    public Integer getIdOcene() {
        return idOcene;
    }

    public void setIdOcene(Integer idOcene) {
        this.idOcene = idOcene;
    }

    public Integer getOcena() {
        return ocena;
    }

    public void setOcena(Integer ocena) {
        this.ocena = ocena;
    }

    public Integer getIdOcenjivaca() {
        return idOcenjivaca;
    }

    public void setIdOcenjivaca(Integer idOcenjivaca) {
        this.idOcenjivaca = idOcenjivaca;
    }

    public Integer getIdPoslodavca() {
        return idPoslodavca;
    }

    public void setIdPoslodavca(Integer idPoslodavca) {
        this.idPoslodavca = idPoslodavca;
    }
}
