package com.jasamedika.medifirst2000.entities;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.*;
import com.jasamedika.medifirst2000.entities.UraianTugas;
import com.jasamedika.medifirst2000.entities.Pegawai;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.jasamedika.medifirst2000.base.BaseTransaction;

import javax.validation.constraints.NotNull;
import com.jasamedika.medifirst2000.helper.Caption;

/**
 * class IndekKinerja
 * 
 * @author Generator
 */
@Entity
@Table(name = "sdm_IndekKinerja_T")
public class IndekKinerja extends BaseTransaction {
	@Column(name = "Tanggal", nullable = false, length = 100)
	@Caption(value = "Tanggal")
	private Date tanggal;

	public Date getTanggal() {
		return tanggal;
	}

	public void setTanggal(Date tanggal) {
		this.tanggal = tanggal;
	}

	@ManyToOne
	@JoinColumn(name = "UraianTugasFk")
	@NotNull(message = "Uraian Tugas Harus Diisi")
	@Caption(value = "Uraian Tugas")
	private MapUraianTugasToRincianKegiatan uraianTugas;

	public MapUraianTugasToRincianKegiatan getUraianTugas() {
		return uraianTugas;
	}

	public void setUraianTugas(MapUraianTugasToRincianKegiatan uraianTugas) {
		this.uraianTugas = uraianTugas;
	}

	@Column(name = "UraianTugasFk", insertable = false, updatable = false)
	private Integer uraianTugasId;

	@ManyToOne
	@JoinColumn(name = "PegawaiFk")
	@NotNull(message = "Pegawai Harus Diisi")
	@Caption(value = "Pegawai")
	private Pegawai pegawai;

	public Pegawai getPegawai() {
		return pegawai;
	}

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

	@Column(name = "PegawaiFk", insertable = false, updatable = false)
	private Integer pegawaiId;

	@Column(name = "Nilai", nullable = false, length = 100)
	@Caption(value = "Nilai")
	private Integer nilai;

	public Integer getNilai() {
		return nilai;
	}

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

}