package com.jasamedika.medifirst2000.entities;

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

import static javax.persistence.GenerationType.SEQUENCE;

/**
 * class DataStockMinimumPerDepo
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@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;

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

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

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

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

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

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

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

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

}