package com.jasamedika.medifirst2000.entities;

import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

@Getter
@Setter
@Entity
@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")
	private Double total;

	@Caption(value = "Nilai")
	@Column(name = "nilai")
	private Double nilai;

	@Caption(value = "Hasil")
	@Column(name = "hasil")
	private Double hasil;

	@Caption(value = "Target")
	@Column(name = "target")
	private Double target;

	@Caption(value = "Bobot")
	@Column(name = "bobot")
	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", length = 8000)
	private String keterangan;

}
