package com.jasamedika.medifirst2000.entities;

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;

/**
 *  class DestroyProdukPetugas
 * 
 * @author Generator
 */
@Entity
@Table(name = "DestroyProdukPetugas_T")
public class DestroyProdukPetugas extends BaseTransaction {
	
	@Caption(value="Deskripsi Tugas Fungsi")
	@Column(name = "DeskripsiTugasFungsi", nullable = true , length = 75)
	private String deskripsiTugasFungsi;


	@Caption(value="Is Petugas Pe P Jawab")
	@Column(name = "isPetugasPePJawab", nullable = false )
	private Byte isPetugasPepJawab;


	@ManyToOne
	@JoinColumn(name = "ObjectJenisPetugasPeFk")
	@NotNull(message="Object Jenis Petugas Pe Harus Diisi")
	@Caption(value="Object Jenis Petugas Pe")
	private JenisPetugasPelaksana jenisPetugasPelaksana;


	@Column(name = "ObjectJenisPetugasPeFk", insertable=false,updatable=false)
	private Integer jenisPetugasPelaksanaId;

	@ManyToOne
	@JoinColumn(name = "ObjectPegawaiFk")
	@NotNull(message="Object Pegawai Harus Diisi")
	@Caption(value="Object Pegawai")
	private Pegawai pegawai;


	@Column(name = "ObjectPegawaiFk", insertable=false,updatable=false)
	private Integer pegawaiId;

	@ManyToOne
	@JoinColumn(name = "NoHistoriFk")
	@NotNull(message="No Histori Harus Diisi")
	@Caption(value="No Histori")
	private StrukHistori strukHistory;

	@Column(name = "NoHistoriFk", insertable=false,updatable=false)
	private String strukHistoryId;

	public String getDeskripsiTugasFungsi() {
		return deskripsiTugasFungsi;
	}

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

	public Byte getIsPetugasPepJawab() {
		return isPetugasPepJawab;
	}

	public void setIsPetugasPepJawab(Byte isPetugasPepJawab) {
		this.isPetugasPepJawab = isPetugasPepJawab;
	}

	public JenisPetugasPelaksana getJenisPetugasPelaksana() {
		return jenisPetugasPelaksana;
	}

	public void setJenisPetugasPelaksana(JenisPetugasPelaksana jenisPetugasPelaksana) {
		this.jenisPetugasPelaksana = jenisPetugasPelaksana;
	}

	public Integer getJenisPetugasPelaksanaId() {
		return jenisPetugasPelaksanaId;
	}

	public void setJenisPetugasPelaksanaId(Integer jenisPetugasPelaksanaId) {
		this.jenisPetugasPelaksanaId = jenisPetugasPelaksanaId;
	}

	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 StrukHistori getStrukHistory() {
		return strukHistory;
	}

	public void setStrukHistory(StrukHistori strukHistory) {
		this.strukHistory = strukHistory;
	}

	public String getStrukHistoryId() {
		return strukHistoryId;
	}

	public void setStrukHistoryId(String strukHistoryId) {
		this.strukHistoryId = strukHistoryId;
	}
	
	


}

