package com.jasamedika.medifirst2000.entities;

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

import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name = "SterilisasiAlat_T")
public class SterilisasiAlat extends BaseTransaction {
	
	@ManyToOne
	@JoinColumn(name = "ObjectBundleSetAlatFk")
	@NotNull(message = "Bundle set alat tidak boleh kosong") 
	@Caption(value="Object Bundle Set Alat")
	private BundleSetAlat bundleSetAlat;
	
	@Column(name = "ObjectBundleSetAlatFk", insertable = false, updatable = false, nullable = false)
	private Integer bundleSetAlatId;
	
	@Column(name = "Jumlah", nullable = true)
	@Caption(value = "Jumlah")
	private Integer jumlah;
	
	@ManyToOne
	@JoinColumn(name = "ObjectSatuanStandarFk")
	@NotNull(message = "Satuan standar tidak boleh kosong") 
	@Caption(value="Object Satuan Standar")
	private SatuanStandar satuanStandar;
	
	@Column(name = "ObjectSatuanStandarFk", insertable = false, updatable = false, nullable = false)
	private Integer satuanStandarId;
	
	@ManyToOne
	@JoinColumn(name = "ObjectRuanganFk")
	@NotNull(message = "Ruangan tidak boleh kosong") 
	@Caption(value="Object Ruangan")
	private Ruangan ruangan;
	
	@Column(name = "ObjectRuanganFk", insertable = false, updatable = false, nullable = false)
	private Integer ruanganId;

	public BundleSetAlat getBundleSetAlat() {
		return bundleSetAlat;
	}

	public void setBundleSetAlat(BundleSetAlat bundleSetAlat) {
		this.bundleSetAlat = bundleSetAlat;
	}

	public Integer getJumlah() {
		return jumlah;
	}

	public void setJumlah(Integer jumlah) {
		this.jumlah = jumlah;
	}

	public SatuanStandar getSatuanStandar() {
		return satuanStandar;
	}

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

	public Ruangan getRuangan() {
		return ruangan;
	}

	public void setRuangan(Ruangan ruangan) {
		this.ruangan = ruangan;
	}
	

	

}
