package com.jasamedika.medifirst2000.entities;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

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

@Entity
@Table(name = "PlanningDiklatHumasMarketPeserta_T")
public class PlanningDiklatHumasMarketPeserta extends BaseTransaction {
	@Caption(value = "No Planning")
	@Column(name = "NoPlanning", length = 10, nullable = true)
	private String noPlanning;
	
	@Caption(value = "Kd Produk DHM")
	@Column(name = "KdProdukDHM", length = 20, nullable = false)
	private String kdProdukDHM;
	
	@Caption(value = "Tgl Planning")
	@Column(name = "TglPlanning", nullable = false)
	private Date tglPlanning;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectPegawaiFk")
	@Caption(value = "Object Pegawai")
	private Pegawai kdPegawai;
	
	@Column(name = "ObjectPegawaiFk", insertable = false, updatable = false, nullable = true)
	private Integer pegawaiId;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "JenisPetugasPeFk")
	@Caption(value = "Jenis Petugas Pelaksana")
	private JenisPetugasPelaksana kdJenisPetugasPe;
	
	@Column(name = "JenisPetugasPeFk", insertable = false, updatable = false, nullable = true)
	private Integer jenisPetugasId;
	
	@Column(name = "IsPetugasPePJawab")
	private Integer isPetugasPePJawab;
	
	@Column(name = "DeskripsiTugasFungsi")
	private String deskripsiTugasFungsi;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "AsalPesertaFk")
	@Caption(value = "AsalPeserta")
	private AsalPeserta kdAsalPeserta;
	
	@Column(name = "AsalPesertaFk", insertable = false, updatable = false, nullable = true)
	private Integer idAsalPeserta;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "RekananPesertaFk")
	@Caption(value = "Object Rekanan Peserta")
	private Rekanan kdRekananPeserta;
	
	public AsalPeserta getKdAsalPeserta() {
		return kdAsalPeserta;
	}

	public void setKdAsalPeserta(AsalPeserta kdAsalPeserta) {
		this.kdAsalPeserta = kdAsalPeserta;
	}

	@Column(name = "RekananPesertaFk", insertable = false, updatable = false, nullable = true)
	private Integer kdRekanan;
	
	@Column(name = "NamaRekananPeserta")
	private String namaRekananPeserta;
	
	@Column(name = "KeteranganPlanLainnya")
	private String keteranganPlanLainnya;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PegawaiExecFk")
	@Caption(value = "Object Pegawai Exec")
	private Pegawai kdPegawaiExec;
	
	@Column(name = "PegawaiExecFk", insertable = false, updatable = false, nullable = true)
	private Integer idPegawaiExec;
	
	@Column(name = "NilaiScore")
	private double nilaiScore;
	
	@Column(name = "KdRangeNilaiScore")
	private Integer kdRangeNilaiScore;
	
	@Column(name = "KeteranganExecLainnya")
	private String keteranganExecLainnya;

	public String getNoPlanning() {
		return noPlanning;
	}

	public void setNoPlanning(String noPlanning) {
		this.noPlanning = noPlanning;
	}

	public String getKdProdukDHM() {
		return kdProdukDHM;
	}

	public void setKdProdukDHM(String kdProdukDHM) {
		this.kdProdukDHM = kdProdukDHM;
	}

	public Date getTglPlanning() {
		return tglPlanning;
	}

	public void setTglPlanning(Date tglPlanning) {
		this.tglPlanning = tglPlanning;
	}

	public Pegawai getKdPegawai() {
		return kdPegawai;
	}

	public void setKdPegawai(Pegawai kdPegawai) {
		this.kdPegawai = kdPegawai;
	}

	public Integer getPegawaiId() {
		return pegawaiId;
	}

	public void setPegawaiId(Integer pegawaiId) {
		this.pegawaiId = pegawaiId;
	}

	public JenisPetugasPelaksana getKdJenisPetugasPe() {
		return kdJenisPetugasPe;
	}

	public void setKdJenisPetugasPe(JenisPetugasPelaksana kdJenisPetugasPe) {
		this.kdJenisPetugasPe = kdJenisPetugasPe;
	}

	public Integer getJenisPetugasId() {
		return jenisPetugasId;
	}

	public void setJenisPetugasId(Integer jenisPetugasId) {
		this.jenisPetugasId = jenisPetugasId;
	}

	public Integer getIsPetugasPePJawab() {
		return isPetugasPePJawab;
	}

	public void setIsPetugasPePJawab(Integer isPetugasPePJawab) {
		this.isPetugasPePJawab = isPetugasPePJawab;
	}

	public String getDeskripsiTugasFungsi() {
		return deskripsiTugasFungsi;
	}

	public void setDeskripsiTugasFungsi(String deskripsiTugasFungsi) {
		this.deskripsiTugasFungsi = deskripsiTugasFungsi;
	}

	public Rekanan getKdRekananPeserta() {
		return kdRekananPeserta;
	}

	public void setKdRekananPeserta(Rekanan kdRekananPeserta) {
		this.kdRekananPeserta = kdRekananPeserta;
	}

	public Integer getKdRekanan() {
		return kdRekanan;
	}

	public void setKdRekanan(Integer kdRekanan) {
		this.kdRekanan = kdRekanan;
	}

	public String getNamaRekananPeserta() {
		return namaRekananPeserta;
	}

	public void setNamaRekananPeserta(String namaRekananPeserta) {
		this.namaRekananPeserta = namaRekananPeserta;
	}

	public String getKeteranganPlanLainnya() {
		return keteranganPlanLainnya;
	}

	public void setKeteranganPlanLainnya(String keteranganPlanLainnya) {
		this.keteranganPlanLainnya = keteranganPlanLainnya;
	}

	public Pegawai getKdPegawaiExec() {
		return kdPegawaiExec;
	}

	public void setKdPegawaiExec(Pegawai kdPegawaiExec) {
		this.kdPegawaiExec = kdPegawaiExec;
	}

	public Integer getIdPegawaiExec() {
		return idPegawaiExec;
	}

	public void setIdPegawaiExec(Integer idPegawaiExec) {
		this.idPegawaiExec = idPegawaiExec;
	}

	public double getNilaiScore() {
		return nilaiScore;
	}

	public void setNilaiScore(double nilaiScore) {
		this.nilaiScore = nilaiScore;
	}

	public Integer getKdRangeNilaiScore() {
		return kdRangeNilaiScore;
	}

	public void setKdRangeNilaiScore(Integer kdRangeNilaiScore) {
		this.kdRangeNilaiScore = kdRangeNilaiScore;
	}

	public String getKeteranganExecLainnya() {
		return keteranganExecLainnya;
	}

	public void setKeteranganExecLainnya(String keteranganExecLainnya) {
		this.keteranganExecLainnya = keteranganExecLainnya;
	}

	public Integer getIdAsalPeserta() {
		return idAsalPeserta;
	}

	public void setIdAsalPeserta(Integer idAsalPeserta) {
		this.idAsalPeserta = idAsalPeserta;
	}
	
	

}
