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 com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name = "ProfileHistoriEventPetugas_T")
public class ProfileHistoriEventPetugas extends BaseTransaction{
	@ManyToOne
	@JoinColumn(name = "noHistoriFk")
	@Caption(value="noHistoriFk")
	private StrukHistori strukHistori;

	@Column(name = "noHistoriFk", insertable=false,updatable=false,nullable=false)
	private String strukHistoriId;

	@ManyToOne
	@JoinColumn(name = "eventFk")
	@Caption(value="eventFk")
	private Event event;

	@Column(name = "eventFk", insertable=false,updatable=false,nullable=false)
	private Integer eventId;

	@Column(name = "deskripsiTugasFungsi", nullable = true)
	@Caption(value = "deskripsiTugasFungsi")
	private String deskripsiTugasFungsi;
	
	@ManyToOne
	@JoinColumn(name = "pegawaiFk")
	@Caption(value="pegawaiFk")
	private Pegawai pegawai;

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

	@ManyToOne
	@JoinColumn(name = "jenisPetugasPeFk")
	@Caption(value="jenisPetugasPeFk")
	private JenisPetugasPelaksana jenisPetugasPe;

	@Column(name = "jenisPetugasPeFk", insertable=false,updatable=false,nullable=false)
	private Integer jenisPetugasPeId;
	
	@Column(name = "isPetugasPePJawab", nullable = false)
	@Caption(value = "isPetugasPePJawab")
	private Byte isPetugasPePJawab;

	public StrukHistori getStrukHistori() {
		return strukHistori;
	}

	public void setStrukHistori(StrukHistori strukHistori) {
		this.strukHistori = strukHistori;
	}

	public String getStrukHistoriId() {
		return strukHistoriId;
	}

	public void setStrukHistoriId(String strukHistoriId) {
		this.strukHistoriId = strukHistoriId;
	}

	public Event getEvent() {
		return event;
	}

	public void setEvent(Event event) {
		this.event = event;
	}

	public Integer getEventId() {
		return eventId;
	}

	public void setEventId(Integer eventId) {
		this.eventId = eventId;
	}

	public String getDeskripsiTugasFungsi() {
		return deskripsiTugasFungsi;
	}

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

	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 JenisPetugasPelaksana getJenisPetugasPe() {
		return jenisPetugasPe;
	}

	public void setJenisPetugasPe(JenisPetugasPelaksana jenisPetugasPe) {
		this.jenisPetugasPe = jenisPetugasPe;
	}

	public Integer getJenisPetugasPeId() {
		return jenisPetugasPeId;
	}

	public void setJenisPetugasPeId(Integer jenisPetugasPeId) {
		this.jenisPetugasPeId = jenisPetugasPeId;
	}

	public Byte getIsPetugasPePJawab() {
		return isPetugasPePJawab;
	}

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