package com.jasamedika.medifirst2000.entities;


import javax.persistence.*;

import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name = "StrukPelayananDPetugas_T")
public class StrukPelayananDPetugas 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 = true )
	private Byte ispetugaspepjawab;

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

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

	@JsonBackReference
	@ManyToOne
	@JoinColumn(name = "NoStrukFk")
	@Caption(value="No Struk")
	private StrukPelayananDetail nostruk;
	
	@Column(name = "NoStrukFk", insertable=false,updatable=false)
	private String NoStrukId;
	
	@Caption(value="Petugas Pengirim")
	@Column(name = "prtugasPengirim", nullable = true )
	private String petugasPengirim;

	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 Pegawai getKdpegawai() {
		return kdpegawai;
	}


	public void setKdpegawai(Pegawai kdpegawai) {
		this.kdpegawai = kdpegawai;
	}


	public Integer getObjectPegawaiId() {
		return ObjectPegawaiId;
	}


	public void setObjectPegawaiId(Integer objectPegawaiId) {
		ObjectPegawaiId = objectPegawaiId;
	}


	public StrukPelayananDetail getNostruk() {
		return nostruk;
	}


	public void setNostruk(StrukPelayananDetail nostruk) {
		this.nostruk = nostruk;
	}


	public String getNoStrukId() {
		return NoStrukId;
	}


	public void setNoStrukId(String noStrukId) {
		NoStrukId = noStrukId;
	}


	public String getPetugasPengirim() {
		return petugasPengirim;
	}


	public void setPetugasPengirim(String petugasPengirim) {
		this.petugasPengirim = petugasPengirim;
	}
	
	


}
