package com.jasamedika.medifirst2000.vo;

import javax.persistence.Column;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;

import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import com.jasamedika.medifirst2000.helper.Caption;

/**
 *  class JenisPegawai
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "JenisPegawai_M")
public class JenisPegawaiVO extends BaseMasterVO {
	@Caption(value="Jenis Pegawai")
	private String jenisPegawai;

	public void setJenisPegawai(String jenisPegawai) {
		this.jenisPegawai = jenisPegawai;
	}

	@Column(name = "JenisPegawai", nullable = false , length = 30)
	public String getJenisPegawai(){
		return this.jenisPegawai;
	}

	@ManyToOne
	@JoinColumn(name = "ObjectDetailKelompokPegawaiFk")
	@NotNull(message="Object Detail Kelompok PegawaiVO Harus Diisi")
	@Caption(value="Object Detail Kelompok Pegawai")
	private DetailKelompokPegawaiVO detailKelompokPegawai;

	public void setDetailKelompokPegawai(DetailKelompokPegawaiVO detailKelompokPegawai) {
		this.detailKelompokPegawai = detailKelompokPegawai;
	}

	@Column(name = "KdDetailKelompokPegawai", nullable = false , length = 2)
	public DetailKelompokPegawaiVO getDetailKelompokPegawai(){
		return this.detailKelompokPegawai;
	}

	@Column(name = "ObjectDetailKelompokPegawaiFk", insertable=false,updatable=false)
	private Integer detailKelompokPegawaiId;

	@Caption(value="Kode Jenis Pegawai")
	private String kdJenisPegawai;

	public void setKdJenisPegawai(String kdJenisPegawai) {
		this.kdJenisPegawai = kdJenisPegawai;
	}

	@Column(name = "KdJenisPegawai", nullable = false , length = 2)
	public String getKdJenisPegawai(){
		return this.kdJenisPegawai;
	}

	@Caption(value="QJenis Pegawai")
	private Byte qJenisPegawai;

	public void setqJenisPegawai(Byte qJenisPegawai) {
		this.qJenisPegawai = qJenisPegawai;
	}

	@Column(name = "QJenisPegawai", nullable = false )
	public Byte getqJenisPegawai(){
		return this.qJenisPegawai;
	}


}

