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.*;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * class IndekKinerja
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@Table(name = "sdm_IndekKinerja_T")
public class IndekKinerja extends BaseTransaction {

	@Column(name = "Tanggal", nullable = false, length = 100)
	@Caption(value = "Tanggal")
	private Date tanggal;

	@ManyToOne
	@JoinColumn(name = "UraianTugasFk")
	@NotNull(message = "Uraian Tugas Harus Diisi")
	@Caption(value = "Uraian Tugas")
	private MapUraianTugasToRincianKegiatan 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;

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

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

}