package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;

/**
 * class JenisPetugasPelaksana
 * 
 * @author Generator
 */
@Entity // @Audited
@Table(name = "JenisPetugasPelaksana_M")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class JenisPetugasPelaksana extends BaseMaster {
	@NotNull(message = "Jenis Petugas Pe tidak boleh kosong")
	@Column(name = "JenisPetugasPe", nullable = false, length = 50)
	@Caption(value = "Jenis Petugas Pe")
	private String jenisPetugasPe;

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

	public String getJenisPetugasPe() {
		return this.jenisPetugasPe;
	}

	@NotNull(message = "Kd Jenis Petugas Pe tidak boleh kosong")
	@Column(name = "KdJenisPetugasPe", nullable = false)
	@Caption(value = "Kode Jenis Petugas Pe")
	private Byte kdJenisPetugasPe;

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

	public Byte getKdJenisPetugasPe() {
		return this.kdJenisPetugasPe;
	}

	@ManyToOne
	@JoinColumn(name = "ObjectKomponenHargaFk")

	@Caption(value = "Object Komponen Harga")
	private KomponenHarga komponenHarga;

	public void setKomponenHarga(KomponenHarga komponenHarga) {
		this.komponenHarga = komponenHarga;
	}

	public KomponenHarga getKomponenHarga() {
		return this.komponenHarga;
	}

	@Column(name = "ObjectKomponenHargaFk", insertable = false, updatable = false)
	private Integer komponenHargaId;

	@NotNull(message = "QJenis Petugas Pe tidak boleh kosong")
	@Column(name = "QJenisPetugasPe", nullable = false)
	@Caption(value = "QJenis Petugas Pe")
	private Byte qJenisPetugasPe;

	public void setqJenisPetugasPe(Byte qJenisPetugasPe) {
		this.qJenisPetugasPe = qJenisPetugasPe;
	}

	public Byte getqJenisPetugasPe() {
		return this.qJenisPetugasPe;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.jenispetugaspelaksana_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.jenispetugaspelaksana_m_id_seq", sequenceName = "public.jenispetugaspelaksana_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

	public Integer getId() {

		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
}