package com.jasamedika.medifirst2000.entities;

import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

/**
 * class DestroyProdukPetugas
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@Table(name = "DestroyProdukPetugas_T")
public class DestroyProdukPetugas extends BaseTransaction {

	@Caption(value = "Deskripsi Tugas Fungsi")
	@Column(name = "DeskripsiTugasFungsi", 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;

}
