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 java.util.Date;

@Getter
@Setter
@Entity
@Table(name = "historiusulanrinciankegiatan_t")
public class HistoriUsulanRincianKegiatan extends BaseTransaction {

	@ManyToOne
	@JoinColumn(name = "objectrinciankegiatanfk")
	@Caption(value = "Rincian Kegiatan")
	private RincianKegiatan rincianKegiatan;

	@Column(name = "objectrinciankegiatanfk", insertable = false, updatable = false, nullable = false)
	private Integer rincianKegiatanId;

	@ManyToOne
	@JoinColumn(name = "objecturaiantugasmfk")
	@Caption(value = "Master Uraian Tugas")
	private UraianTugasM masterUraianTugas;

	@Column(name = "objecturaiantugasmfk", insertable = false, updatable = false, nullable = false)
	private Integer masterUraianTugasId;

	@Column(name = "rinciankegiatan")
	@Caption(value = "Deskripsi Rincian Kegiatan")
	private String detailRincianKegiatan;

	@Column(name = "satuan")
	@Caption(value = "Satuan")
	private String satuan;

	@ManyToOne
	@JoinColumn(name = "objectsatuanindikatorfk")
	@Caption(value = "Satuan Indikator")
	private SatuanIndikator satuanIndikator;

	@Column(name = "objectsatuanindikatorfk", insertable = false, updatable = false, nullable = false)
	private Integer satuanIndikatorId;

	@Column(name = "periode")
	@Caption(value = "Periode")
	private String periode;

	@ManyToOne
	@JoinColumn(name = "objectpegawaipengusulfk")
	@Caption(value = "Pegawai Pengusul")
	private Pegawai pegawaiPengusul;

	@Column(name = "objectpegawaipengusulfk", insertable = false, updatable = false, nullable = false)
	private Integer pegawaiPengusulId;

	@Column(name = "tglUsulan")
	@Caption(value = "Tanggal Usulan")
	private Date tglUsulan;

}
