package com.jasamedika.medifirst2000.entities;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity //@Audited
@Table(name = "sdm_DetailUraianTugasTransaksi_T")
public class DetailUraianTugasTransaksi extends BaseTransaction{
	
	@ManyToOne
	@JoinColumn(name = "ObjectUraianTugasTransaksiFk")
	@Caption(value = "Object UraianTugasTransaksi")
	private UraianTugasTransaksi uraianTugasTransaksi;
	
	@Column(name = "ObjectUraianTugasTransaksiFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = false)
	private String uraianTugasTransaksiId;
	
	@ManyToOne
	@JoinColumn(name = "ObjectRincianTugasFk")
	@Caption(value = "Object Rincian Tugas")
	private RincianKegiatan rincianKegiatan;
	
	@Column(name = "ObjectRincianTugasFk", insertable = false, updatable = false, nullable = true)
	private Integer rincianKegiatanId;
	
	@Caption(value = "Capaian")
	@NotNull(message = "Capaian  tidak boleh kosong")
	@Column(name = "capaian", nullable = true)
	private Double capaian;		
	
	@Caption(value = "Tanggal")
	@NotNull(message = "Tanggal  tidak boleh kosong")
	@Column(name = "tanggal", nullable = true)
	private Date tanggal;	
	
	@ManyToOne
	@JoinColumn(name = "ObjectPegawaiFk")
	@Caption(value = "Object Pegawai")
	private Pegawai pegawai;
	
	@Column(name = "ObjectPegawaiFk", insertable = false, updatable = false, nullable = true)
	private Integer pegawaiId;
	
	@Caption(value = "Jam Awal Kegiatan")
	@Column(name = "jamawalkegiatan", nullable = true)
	private String jamAwalKegiatan;
	
	@Caption(value = "Jam Akhir Kegiatan")
	@Column(name = "jamakhirkegiatan", nullable = true)
	private String jamAkhirKegiatan;
	
	@Caption(value = "Lama Kegiatan")
	@Column(name = "lamakegiatan", nullable = true)
	private Integer lamaKegiatan;

	public UraianTugasTransaksi getUraianTugasTransaksi() {
		return uraianTugasTransaksi;
	}

	public void setUraianTugasTransaksi(UraianTugasTransaksi uraianTugasTransaksi) {
		this.uraianTugasTransaksi = uraianTugasTransaksi;
	}

	public String getUraianTugasTransaksiId() {
		return uraianTugasTransaksiId;
	}

	public void setUraianTugasTransaksiId(String uraianTugasTransaksiId) {
		this.uraianTugasTransaksiId = uraianTugasTransaksiId;
	}

	public RincianKegiatan getRincianKegiatan() {
		return rincianKegiatan;
	}

	public void setRincianKegiatan(RincianKegiatan rincianKegiatan) {
		this.rincianKegiatan = rincianKegiatan;
	}

	public Integer getRincianKegiatanId() {
		return rincianKegiatanId;
	}

	public void setRincianKegiatanId(Integer rincianKegiatanId) {
		this.rincianKegiatanId = rincianKegiatanId;
	}

	public Double getCapaian() {
		return capaian;
	}

	public void setCapaian(Double capaian) {
		this.capaian = capaian;
	}

	public Date getTanggal() {
		return tanggal;
	}

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

	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 String getJamAwalKegiatan() {
		return jamAwalKegiatan;
	}

	public void setJamAwalKegiatan(String jamAwalKegiatan) {
		this.jamAwalKegiatan = jamAwalKegiatan;
	}

	public String getJamAkhirKegiatan() {
		return jamAkhirKegiatan;
	}

	public void setJamAkhirKegiatan(String jamAkhirKegiatan) {
		this.jamAkhirKegiatan = jamAkhirKegiatan;
	}

	public Integer getLamaKegiatan() {
		return lamaKegiatan;
	}

	public void setLamaKegiatan(Integer lamaKegiatan) {
		this.lamaKegiatan = lamaKegiatan;
	}

	
}
