package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import org.hibernate.envers.Audited;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * class DataStockMinimumPerDepo
 * 
 * @author Generator
 */
@Entity // @Audited
@Table(name = "RM_DataStockMinimumPerDepo_M")
public class DataStockMinimumPerDepo extends BaseMaster {
	@NotNull(message = "KodeBarang tidak boleh kosong")
	@Column(name = "KodeBarang", nullable = false, length = 100)
	@Caption(value = "KodeBarang")
	private String kodeBarang;

	public void setKodeBarang(String kodeBarang) {
		this.kodeBarang = kodeBarang;
	}

	public String getKodeBarang() {
		return this.kodeBarang;
	}

	@NotNull(message = "NamaBarang tidak boleh kosong")
	@Column(name = "NamaBarang", nullable = false, length = 100)
	@Caption(value = "NamaBarang")
	private String namaBarang;

	public void setNamaBarang(String namaBarang) {
		this.namaBarang = namaBarang;
	}

	public String getNamaBarang() {
		return this.namaBarang;
	}

	@NotNull(message = "Sediaan tidak boleh kosong")
	@Column(name = "Sediaan", nullable = false, length = 100)
	@Caption(value = "Sediaan")
	private String sediaan;

	public void setSediaan(String sediaan) {
		this.sediaan = sediaan;
	}

	public String getSediaan() {
		return this.sediaan;
	}

	@NotNull(message = "StokMinimal tidak boleh kosong")
	@Column(name = "StokMinimal", nullable = false, length = 100)
	@Caption(value = "StokMinimal")
	private String stokMinimal;

	public void setStokMinimal(String stokMinimal) {
		this.stokMinimal = stokMinimal;
	}

	public String getStokMinimal() {
		return this.stokMinimal;
	}

	@NotNull(message = "StokMaksimal tidak boleh kosong")
	@Column(name = "StokMaksimal", nullable = false, length = 100)
	@Caption(value = "StokMaksimal")
	private String stokMaksimal;

	public void setStokMaksimal(String stokMaksimal) {
		this.stokMaksimal = stokMaksimal;
	}

	public String getStokMaksimal() {
		return this.stokMaksimal;
	}

	@NotNull(message = "BuatPermintaan tidak boleh kosong")
	@Column(name = "BuatPermintaan", nullable = false, length = 100)
	@Caption(value = "BuatPermintaan")
	private String buatPermintaan;

	public void setBuatPermintaan(String buatPermintaan) {
		this.buatPermintaan = buatPermintaan;
	}

	public String getBuatPermintaan() {
		return this.buatPermintaan;
	}

	@NotNull(message = "JmlDiminta tidak boleh kosong")
	@Column(name = "JmlDiminta", nullable = false, length = 100)
	@Caption(value = "JmlDiminta")
	private String jmlDiminta;

	public void setJmlDiminta(String jmlDiminta) {
		this.jmlDiminta = jmlDiminta;
	}

	public String getJmlDiminta() {
		return this.jmlDiminta;
	}

	@NotNull(message = "SaldoGudangTerminalFarmasi tidak boleh kosong")
	@Column(name = "SaldoGudangTerminalFarmasi", nullable = false, length = 100)
	@Caption(value = "SaldoGudangTerminalFarmasi")
	private String saldoGudangTerminalFarmasi;

	public void setSaldoGudangTerminalFarmasi(String saldoGudangTerminalFarmasi) {
		this.saldoGudangTerminalFarmasi = saldoGudangTerminalFarmasi;
	}

	public String getSaldoGudangTerminalFarmasi() {
		return this.saldoGudangTerminalFarmasi;
	}

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

	public Integer getId() {

		return id;
	}

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