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 DataMutasiBarangKadaluarsa
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@Table(name = "RM_DataMutasiBarangKadaluarsa_M")
public class DataMutasiBarangKadaluarsa 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 = "Satuan tidak boleh kosong")
	@Column(name = "Satuan", nullable = false, length = 100)
	@Caption(value = "Satuan")
	private String satuan;

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

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

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

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

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

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

}