package com.dacrt.SBIABackend.entity;

import java.sql.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

@Entity
@Table(name = "evalprocesses",schema = "main")
public class Evalprocesses {
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	
	@ManyToOne
    @JoinColumn(name = "campaignunitid")
	private Campaignunits campaignunitid;
	
	@ManyToOne
    @JoinColumn(name = "unitprocessid")
	private Unitprocesses unitprocessid;
	
	@NotNull
	private Integer impactst;
	
	@NotNull
	private Integer appst;
	
	@NotNull
	private Integer suplierst;
	
	@NotNull
	private Integer recordst;
	
	@NotNull
	private Integer periodst;
	
	@NotNull
	private Integer inputst;
	
	@NotNull
	private Integer reportst;
	
	@NotNull
	private Date createdat;
	
	@NotNull
	private Date modifiedat;

	public Evalprocesses() {
		super();
	}

	public Evalprocesses(Integer id, Campaignunits campaignunitid, Unitprocesses unitprocessid,
			@NotNull Integer impactst, @NotNull Integer appst, @NotNull Integer suplierst, @NotNull Integer recordst,
			@NotNull Integer periodst, @NotNull Integer inputst, @NotNull Integer reportst, @NotNull Date createdat,
			@NotNull Date modifiedat) {
		super();
		this.id = id;
		this.campaignunitid = campaignunitid;
		this.unitprocessid = unitprocessid;
		this.impactst = impactst;
		this.appst = appst;
		this.suplierst = suplierst;
		this.recordst = recordst;
		this.periodst = periodst;
		this.inputst = inputst;
		this.reportst = reportst;
		this.createdat = createdat;
		this.modifiedat = modifiedat;
	}

	public Integer getId() {
		return id;
	}

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

	public Campaignunits getCampaignunitid() {
		return campaignunitid;
	}

	public void setCampaignunitid(Campaignunits campaignunitid) {
		this.campaignunitid = campaignunitid;
	}

	public Unitprocesses getUnitprocessid() {
		return unitprocessid;
	}

	public void setUnitprocessid(Unitprocesses unitprocessid) {
		this.unitprocessid = unitprocessid;
	}

	public Integer getImpactst() {
		return impactst;
	}

	public void setImpactst(Integer impactst) {
		this.impactst = impactst;
	}

	public Integer getAppst() {
		return appst;
	}

	public void setAppst(Integer appst) {
		this.appst = appst;
	}

	public Integer getSuplierst() {
		return suplierst;
	}

	public void setSuplierst(Integer suplierst) {
		this.suplierst = suplierst;
	}

	public Integer getRecordst() {
		return recordst;
	}

	public void setRecordst(Integer recordst) {
		this.recordst = recordst;
	}

	public Integer getPeriodst() {
		return periodst;
	}

	public void setPeriodst(Integer periodst) {
		this.periodst = periodst;
	}

	public Integer getInputst() {
		return inputst;
	}

	public void setInputst(Integer inputst) {
		this.inputst = inputst;
	}

	public Integer getReportst() {
		return reportst;
	}

	public void setReportst(Integer reportst) {
		this.reportst = reportst;
	}

	public Date getCreatedat() {
		return createdat;
	}

	public void setCreatedat(Date createdat) {
		this.createdat = createdat;
	}

	public Date getModifiedat() {
		return modifiedat;
	}

	public void setModifiedat(Date modifiedat) {
		this.modifiedat = modifiedat;
	}

	
}
