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 com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity //@Audited
@Table(name = "Sdm_IndeksKinerjaIndividu_T")
public class IndeksKinerjaIndividu 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;
	
	@ManyToOne
	@JoinColumn(name = "ObjectKomponenIKIFk")
	@Caption(value = "Object KomponenIKI")
	private KomponenIKI komponenIKI;
	
	@Column(name = "ObjectPegawaiFk", insertable = false, updatable = false, nullable = false)
	private Integer komponenIKIId;
	
	@Caption(value = "Total")
	@Column(name = "total", nullable = true)
	private Double total;	
	
	@Caption(value = "Nilai")
	@Column(name = "nilai", nullable = true)
	private Double nilai;
	
	@Caption(value = "Hasil")
	@Column(name = "hasil", nullable = true)
	private Double hasil;
	
	@Caption(value = "Target")
	@Column(name = "target", nullable = true)
	private Double target;
	
	@Caption(value = "Bobot")
	@Column(name = "bobot", nullable = true)
	private Double bobot;
	
	@Caption(value = "periode")
	@Column(name = "periode", nullable = false)
	private String periode;
	
	@Caption(value = "item")
	@Column(name = "item", nullable = false, length = 8000)
	private String item;
	
	@Caption(value = "keterangan")
	@Column(name = "keterangan", nullable = true, length = 8000)
	private String keterangan;

	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 KomponenIKI getKomponenIKI() {
		return komponenIKI;
	}

	public void setKomponenIKI(KomponenIKI komponenIKI) {
		this.komponenIKI = komponenIKI;
	}

	public Integer getKomponenIKIId() {
		return komponenIKIId;
	}

	public void setKomponenIKIId(Integer komponenIKIId) {
		this.komponenIKIId = komponenIKIId;
	}

	public Double getTotal() {
		return total;
	}

	public void setTotal(Double total) {
		this.total = total;
	}

	public Double getNilai() {
		return nilai;
	}

	public void setNilai(Double nilai) {
		this.nilai = nilai;
	}

	public Double getHasil() {
		return hasil;
	}

	public void setHasil(Double hasil) {
		this.hasil = hasil;
	}

	public Double getTarget() {
		return target;
	}

	public void setTarget(Double target) {
		this.target = target;
	}

	public Double getBobot() {
		return bobot;
	}

	public void setBobot(Double bobot) {
		this.bobot = bobot;
	}

	public String getPeriode() {
		return periode;
	}

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

	public String getItem() {
		return item;
	}

	public void setItem(String item) {
		this.item = item;
	}

	public String getKeterangan() {
		return keterangan;
	}

	public void setKeterangan(String keterangan) {
		this.keterangan = keterangan;
	}	

}
