package hr.com.port.ips.eracun.modeli;

import java.sql.Timestamp;

public class MerEreportingLog {

    private Long id;

    // poslovni ključ
    private Integer vrstaDokumenta;
    private Integer godina;
    private Integer opp;
    private Integer onu;
    private Integer broj;

    // kontekst
    private String izvor;       // 'MER' | 'LOCAL'
    private String akcija;      // 'EREPORTING' | 'STATUS' | 'ERROR'
    private Integer statusId;   // MerEreportingStatus.getId() ili null
    private String message;     // kratka poruka
    private String detalji;     // JSON ili tekst

    private Timestamp datumPromjene;

    public MerEreportingLog() { }

    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }

    public Integer getVrstaDokumenta() { return vrstaDokumenta; }
    public void setVrstaDokumenta(Integer vrstaDokumenta) { this.vrstaDokumenta = vrstaDokumenta; }

    public Integer getGodina() { return godina; }
    public void setGodina(Integer godina) { this.godina = godina; }

    public Integer getOpp() { return opp; }
    public void setOpp(Integer opp) { this.opp = opp; }

    public Integer getOnu() { return onu; }
    public void setOnu(Integer onu) { this.onu = onu; }

    public Integer getBroj() { return broj; }
    public void setBroj(Integer broj) { this.broj = broj; }

    public String getIzvor() { return izvor; }
    public void setIzvor(String izvor) { this.izvor = izvor; }

    public String getAkcija() { return akcija; }
    public void setAkcija(String akcija) { this.akcija = akcija; }

    public Integer getStatusId() { return statusId; }
    public void setStatusId(Integer statusId) { this.statusId = statusId; }

    public String getMessage() { return message; }
    public void setMessage(String message) { this.message = message; }

    public String getDetalji() { return detalji; }
    public void setDetalji(String detalji) { this.detalji = detalji; }

    public Timestamp getDatumPromjene() { return datumPromjene; }
    public void setDatumPromjene(Timestamp datumPromjene) { this.datumPromjene = datumPromjene; }
}