package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name = "sdm_NilaiIndexKinerjaIndividu_T")
public class NilaiIndexKinerjaIndividu extends BaseTransaction {
	
	@ManyToOne
	@JoinColumn(name = "ObjectPegawaiFk")
	@Caption(value = "Object Pegawai")
	private Pegawai pegawai;
	
	@Column(name = "ObjectPegawaiFk", insertable = false, updatable = false, nullable = false)
	private Integer pegawaiId;
	
	@Caption(value = "periode")
	@NotNull(message = "Periode tidak boleh kosong")
	@Column(name = "periode", nullable = false)
	private String periode;
	
	@Caption(value = "totalKuantitas")
	@Column(name = "totalKuantitas", nullable = true)
	private Double totalKuantitas;
	
	@Caption(value = "totalKualitas")
	@Column(name = "totalKualitas", nullable = true)
	private Double totalKualitas;
	
	@Caption(value = "totalPerilaku")
	@Column(name = "totalPerilaku", nullable = true)
	private Double totalPerilaku;
	
	@Caption(value = "totalInovasi")
	@Column(name = "totalInovasi", nullable = true)
	private Double totalInovasi;
	
	@Caption(value = "totalIKI")
	@Column(name = "totalIKI", nullable = true)
	private Double totalIKI;
	
	@Caption(value = "iki")
	@Column(name = "iki", nullable = true)
	private Double iki;

	public Double getIki() {
		return iki;
	}

	public void setIki(Double iki) {
		this.iki = iki;
	}

	public Pegawai getPegawai() {
		return pegawai;
	}

	public void setPegawai(Pegawai pegawai) {
		this.pegawai = pegawai;
	}

	public Integer getPegawaiId() {
		return pegawaiId;
	}

	public void setPegawaiId(Integer pegawaiId) {
		this.pegawaiId = pegawaiId;
	}

	public String getPeriode() {
		return periode;
	}

	public void setPeriode(String periode) {
		this.periode = periode;
	}

	public Double getTotalKuantitas() {
		return totalKuantitas;
	}

	public void setTotalKuantitas(Double totalKuantitas) {
		this.totalKuantitas = totalKuantitas;
	}

	public Double getTotalKualitas() {
		return totalKualitas;
	}

	public void setTotalKualitas(Double totalKualitas) {
		this.totalKualitas = totalKualitas;
	}

	public Double getTotalPerilaku() {
		return totalPerilaku;
	}

	public void setTotalPerilaku(Double totalPerilaku) {
		this.totalPerilaku = totalPerilaku;
	}

	public Double getTotalInovasi() {
		return totalInovasi;
	}

	public void setTotalInovasi(Double totalInovasi) {
		this.totalInovasi = totalInovasi;
	}

	public Double getTotalIKI() {
		return totalIKI;
	}

	public void setTotalIKI(Double totalIKI) {
		this.totalIKI = totalIKI;
	}

}
