package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

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

@Entity // @Audited
@Table(name = "sdm_UraianTugas_M")
public class UraianTugasM extends BaseMaster {

	@Caption(value = "periode")
	@Column(name = "periode", nullable = true)
	private String periode;

	@ManyToOne
	@JoinColumn(name = "ObjectJabatanFk")
	@Caption(value = "Object Jabatan")
	private Jabatan jabatan;

	@Column(name = "ObjectJabatanFk", insertable = false, updatable = false, nullable = true)
	private Integer jabatanId;

	@ManyToOne
	@JoinColumn(name = "ObjectRincianTugasFk")
	@Caption(value = "Object Rincian Tugas")
	private RincianKegiatan rincianKegiatan;

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

	@ManyToOne
	@JoinColumn(name = "ObjectDokumenFk")
	@Caption(value = "Object Dokumen Tugas")
	private Dokumen dokumen;

	@Column(name = "ObjectDokumenFk", insertable = false, updatable = false, nullable = true)
	private Integer dokumenId;

	@ManyToOne
	@JoinColumn(name = "ObjectPelaksanaanTugasFk")
	@Caption(value = "Object Pelaksanaan Tugas")
	private PelaksanaanTugas pelaksanaanTugas;

	@Column(name = "ObjectPelaksanaanTugasFk", insertable = false, updatable = false, nullable = true)
	private Integer pelaksanaanTugasId;

	// @Caption(value = "Lama Kegiatan")
	// @Column(name = "LamaKegiatan", nullable = true)
	// private Integer lamaKegiatan;

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.sdm_UraianTugas_M_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.sdm_UraianTugas_M_id_seq", sequenceName = "public.sdm_UraianTugas_M_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

	public String getPeriode() {
		return periode;
	}

	public void setPeriode(String periode) {
		this.periode = periode;
	}

	public Jabatan getJabatan() {
		return jabatan;
	}

	public void setJabatan(Jabatan jabatan) {
		this.jabatan = jabatan;
	}

	public Integer getJabatanId() {
		return jabatanId;
	}

	public void setJabatanId(Integer jabatanId) {
		this.jabatanId = jabatanId;
	}

	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 Dokumen getDokumen() {
		return dokumen;
	}

	public void setDokumen(Dokumen dokumen) {
		this.dokumen = dokumen;
	}

	public Integer getDokumenId() {
		return dokumenId;
	}

	public void setDokumenId(Integer dokumenId) {
		this.dokumenId = dokumenId;
	}

	public PelaksanaanTugas getPelaksanaanTugas() {
		return pelaksanaanTugas;
	}

	public void setPelaksanaanTugas(PelaksanaanTugas pelaksanaanTugas) {
		this.pelaksanaanTugas = pelaksanaanTugas;
	}

	public Integer getPelaksanaanTugasId() {
		return pelaksanaanTugasId;
	}

	public void setPelaksanaanTugasId(Integer pelaksanaanTugasId) {
		this.pelaksanaanTugasId = pelaksanaanTugasId;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

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

}
