package com.jasamedika.medifirst2000.vo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import org.hibernate.validator.constraints.NotEmpty;

import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.internal.util.logging.Messages;

import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import com.jasamedika.medifirst2000.helper.Caption;

/**
 *  class JenisSatuanKerja
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "JenisSatuanKerja_M")
public class JenisSatuanKerjaVO extends BaseMasterVO {
	@Caption(value="Jenis Satuan Kerja")
	private String jenisSatuanKerja;

	public void setJenisSatuanKerja(String jenisSatuanKerja) {
		this.jenisSatuanKerja = jenisSatuanKerja;
	}

	@Column(name = "JenisSatuanKerja", nullable = false , length = 100)
	public String getJenisSatuanKerja(){
		return this.jenisSatuanKerja;
	}

	@Caption(value="Kode Jenis Satuan Kerja")
	private Byte kdJenisSatuanKerja;

	public void setKdJenisSatuanKerja(Byte kdJenisSatuanKerja) {
		this.kdJenisSatuanKerja = kdJenisSatuanKerja;
	}

	@Column(name = "KdJenisSatuanKerja", nullable = false )
	public Byte getKdJenisSatuanKerja(){
		return this.kdJenisSatuanKerja;
	}

	@Caption(value="Kode Pimpinan")
	private String kdPimpinan;

	public void setKdPimpinan(String kdPimpinan) {
		this.kdPimpinan = kdPimpinan;
	}

	@Column(name = "KdPimpinan", nullable = true , length = 5)
	public String getKdPimpinan(){
		return this.kdPimpinan;
	}

	@ManyToOne
	@JoinColumn(name = "ObjectUnitKerjaFk")
	@NotNull(message="Object Unit Kerja Harus Diisi")
	@Caption(value="Object Unit Kerja")
	private UnitKerjaVO unitKerja;

	public void setUnitKerja(UnitKerjaVO unitKerja) {
		this.unitKerja = unitKerja;
	}

	@Column(name = "KdUnitKerja", nullable = false )
	public UnitKerjaVO getUnitKerja(){
		return this.unitKerja;
	}

	@Column(name = "ObjectUnitKerjaFk", insertable=false,updatable=false)
	private Integer unitKerjaId;

	@Caption(value="No Jenis Satuan Kerja")
	private String noJenisSatuanKerja;

	public void setNoJenisSatuanKerja(String noJenisSatuanKerja) {
		this.noJenisSatuanKerja = noJenisSatuanKerja;
	}

	@Column(name = "NoJenisSatuanKerja", nullable = true , length = 50)
	public String getNoJenisSatuanKerja(){
		return this.noJenisSatuanKerja;
	}

	@Caption(value="QJenis Satuan Kerja")
	private Byte qJenisSatuanKerja;

	public void setqJenisSatuanKerja(Byte qJenisSatuanKerja) {
		this.qJenisSatuanKerja = qJenisSatuanKerja;
	}

	@Column(name = "QJenisSatuanKerja", nullable = false )
	public Byte getqJenisSatuanKerja(){
		return this.qJenisSatuanKerja;
	}


}

