package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
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
@Table(name="sdm_programkegiatan_m")
public class ProgramKegiatan extends BaseMaster {
	
	@Caption(value = "Nama Program")
	@Column(name = "namaprogram", nullable = true)
	private String namaProgram;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "objectjabatanpelaksanafk")
	@Caption(value = "Jabatan Pelaksana Kegiatan")
	private Jabatan jabatanPelaksanaKegiatan;
	
	@Column(name = "objectjabatanpelaksanafk", insertable = false, updatable = false, nullable = true)
	private Integer idJabatanPelaksanaKegiatan;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "objectpegawaiatasanfk")
	@Caption(value = "Pegawai Atasan Langsung")
	private Pegawai pegawaiAtasanLangsung;
	
	@Column(name = "objectpegawaifk", insertable = false, updatable = false, nullable = true)
	private Integer idPegawaiAtasanLangsung;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "objectjabatanatasanfk")
	@Caption(value = "Jabatan Atasan Langsung")
	private Jabatan jabatanAtasanLangsung;
	
	@Column(name = "objectjabatanatasanfk", insertable = false, updatable = false, nullable = true)
	private Integer idJabatanAtasanLangsung;
	
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.sdm_programkegiatan_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.sdm_programkegiatan_m_id_seq", sequenceName = "public.sdm_programkegiatan_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

	public String getNamaProgram() {
		return namaProgram;
	}

	public void setNamaProgram(String namaProgram) {
		this.namaProgram = namaProgram;
	}

	public Jabatan getJabatanPelaksanaKegiatan() {
		return jabatanPelaksanaKegiatan;
	}

	public void setJabatanPelaksanaKegiatan(Jabatan jabatanPelaksanaKegiatan) {
		this.jabatanPelaksanaKegiatan = jabatanPelaksanaKegiatan;
	}

	public Integer getIdJabatanPelaksanaKegiatan() {
		return idJabatanPelaksanaKegiatan;
	}

	public void setIdJabatanPelaksanaKegiatan(Integer idJabatanPelaksanaKegiatan) {
		this.idJabatanPelaksanaKegiatan = idJabatanPelaksanaKegiatan;
	}

	public Pegawai getPegawaiAtasanLangsung() {
		return pegawaiAtasanLangsung;
	}

	public void setPegawaiAtasanLangsung(Pegawai pegawaiAtasanLangsung) {
		this.pegawaiAtasanLangsung = pegawaiAtasanLangsung;
	}

	public Integer getIdPegawaiAtasanLangsung() {
		return idPegawaiAtasanLangsung;
	}

	public void setIdPegawaiAtasanLangsung(Integer idPegawaiAtasanLangsung) {
		this.idPegawaiAtasanLangsung = idPegawaiAtasanLangsung;
	}

	public Jabatan getJabatanAtasanLangsung() {
		return jabatanAtasanLangsung;
	}

	public void setJabatanAtasanLangsung(Jabatan jabatanAtasanLangsung) {
		this.jabatanAtasanLangsung = jabatanAtasanLangsung;
	}

	public Integer getIdJabatanAtasanLangsung() {
		return idJabatanAtasanLangsung;
	}

	public void setIdJabatanAtasanLangsung(Integer idJabatanAtasanLangsung) {
		this.idJabatanAtasanLangsung = idJabatanAtasanLangsung;
	}

	public Integer getId() {
		return id;
	}

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