package com.jasamedika.medifirst2000.vo;

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

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

/**
 * class SatuanStandar
 * 
 * @author Generator
 */
// @Entity
// @Table(name = "SatuanStandar_M")
public class SatuanStandarVO extends BaseMasterVO {

	private static final long serialVersionUID = -940457793675380254L;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "KdHeadSatuanStandard")
	@Caption(value = "Satuan Standar")
	private SatuanStandarVO satuanStandarHead;
	public SatuanStandarVO getSatuanStandarHead() {
		return satuanStandarHead;
	}

	public void setSatuanStandarHead(SatuanStandarVO satuanStandarHead) {
		this.satuanStandarHead = satuanStandarHead;
	}

	@Column(name = "KdHeadSatuanStandard", insertable = false, updatable = false, nullable = true)
	private Integer satuanStandarId;
	
	@ManyToOne
	@JoinColumn(name = "ObjectDepartemenFk")
	@Caption(value = "Object Departemen")
	private DepartemenVO departemen;

	public void setDepartemen(DepartemenVO departemen) {
		this.departemen = departemen;
	}

	@Column(name = "KdDepartemen", nullable = false, length = 1)
	public DepartemenVO getDepartemen() {
		return this.departemen;
	}

	@Column(name = "ObjectDepartemenFk", insertable = false, updatable = false)
	private Integer departemenId;

	@ManyToOne
	@JoinColumn(name = "ObjectKelompokProdukFk")
	@Caption(value = "Object Kelompok Produk")
	private KelompokProdukVO kelompokProduk;

	public void setKelompokProduk(KelompokProdukVO kelompokProduk) {
		this.kelompokProduk = kelompokProduk;
	}

	@Column(name = "KdKelompokProduk", nullable = true)
	public KelompokProdukVO getKelompokProduk() {
		return this.kelompokProduk;
	}

	@Column(name = "ObjectKelompokProdukFk", insertable = false, updatable = false)
	private Integer kelompokProdukId;

	@Caption(value = "Kode Satuan Standar")
	private Byte kdSatuanStandar;

	public void setKdSatuanStandar(Byte kdSatuanStandar) {
		this.kdSatuanStandar = kdSatuanStandar;
	}

	@Column(name = "KdSatuanStandar", nullable = false)
	public Byte getKdSatuanStandar() {
		return this.kdSatuanStandar;
	}

	@Caption(value = "QSatuan Standar")
	private Byte qSatuanStandar;

	public void setqSatuanStandar(Byte qSatuanStandar) {
		this.qSatuanStandar = qSatuanStandar;
	}

	@Column(name = "QSatuanStandar", nullable = false)
	public Byte getqSatuanStandar() {
		return this.qSatuanStandar;
	}

	@Caption(value = "Satuan Standar")
	private String satuanStandar;

	public void setSatuanStandar(String satuanStandar) {
		this.satuanStandar = satuanStandar;
	}

	@Column(name = "SatuanStandar", nullable = false, length = 20)
	public String getSatuanStandar() {
		return this.satuanStandar;
	}
	
	@Caption(value = "Kode Satuan Standar")
	private Integer qtyKemasan;
	public Integer getQtyKemasan() {
		return qtyKemasan;
	}

	public void setQtyKemasan(Integer qtyKemasan) {
		this.qtyKemasan = qtyKemasan;
	}
	
	
	

}
