package com.jasamedika.medifirst2000.vo;

import java.util.Date;

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

import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import com.jasamedika.medifirst2000.entities.KasusPenyakit;
import com.jasamedika.medifirst2000.entities.Kelas;
import com.jasamedika.medifirst2000.entities.Produk;
import com.jasamedika.medifirst2000.entities.RuangPerawatanKemenkes;
import com.jasamedika.medifirst2000.entities.Ruangan;
import com.jasamedika.medifirst2000.helper.Caption;

public class KamarVO extends BaseMasterVO {
	
	@NotNull(message = "Kd Kamar tidak boleh kosong")
	@Caption(value = "Kode Kamar")
	private short kdKamar;

	@ManyToOne(fetch = FetchType.LAZY)
	@NotNull(message = "Kd Kelas tidak boleh kosong")
	@Caption(value = "Object Kelas")
	private KelasVO kelas;

	@ManyToOne(fetch = FetchType.LAZY)
	@NotNull(message = "Kd Ruangan tidak boleh kosong")
	@Caption(value = "Object Ruangan")
	private RuanganVO ruangan;

	@Caption(value = "Keterangan")
	private String keterangan;
	
	@Caption(value = "tglUpdate")
	private Date tglUpdate;

	@Caption(value = "Jumla Kamar Isi")
	private Integer jumlaKamarIsi;

	@Caption(value = "Jumla Kamar Kosong")
	private Integer jumlaKamarKosong;
	
	private Produk produk;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@Caption(value = "RuangPerawatanKemenkes")
	private RuangPerawatanKemenkesVO ruangPerawatanKemenkes;
	
	@NotNull(message = "Nama Kamar tidak boleh kosong")
	@Caption(value = "Nama Kamar")
	private String namaKamar;

	@NotNull(message = "QKamar tidak boleh kosong")
	@Column(name = "QKamar", nullable = false)
	private short qKamar;

	@NotNull(message = "Qty Bed tidak boleh kosong")
	@Caption(value = "Qty Bed")
	private Byte qtyBed;

	public short getKdKamar() {
		return kdKamar;
	}

	public void setKdKamar(short kdKamar) {
		this.kdKamar = kdKamar;
	}

	public KelasVO getKelas() {
		return kelas;
	}

	public void setKelas(KelasVO kelas) {
		this.kelas = kelas;
	}

	public RuanganVO getRuangan() {
		return ruangan;
	}

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

	public String getKeterangan() {
		return keterangan;
	}

	public void setKeterangan(String keterangan) {
		this.keterangan = keterangan;
	}

	public Date getTglUpdate() {
		return tglUpdate;
	}

	public void setTglUpdate(Date tglUpdate) {
		this.tglUpdate = tglUpdate;
	}

	public Integer getJumlaKamarIsi() {
		return jumlaKamarIsi;
	}

	public void setJumlaKamarIsi(Integer jumlaKamarIsi) {
		this.jumlaKamarIsi = jumlaKamarIsi;
	}

	public Integer getJumlaKamarKosong() {
		return jumlaKamarKosong;
	}

	public void setJumlaKamarKosong(Integer jumlaKamarKosong) {
		this.jumlaKamarKosong = jumlaKamarKosong;
	}

	public RuangPerawatanKemenkesVO getRuangPerawatanKemenkes() {
		return ruangPerawatanKemenkes;
	}

	public void setRuangPerawatanKemenkes(RuangPerawatanKemenkesVO ruangPerawatanKemenkes) {
		this.ruangPerawatanKemenkes = ruangPerawatanKemenkes;
	}

	public String getNamaKamar() {
		return namaKamar;
	}

	public void setNamaKamar(String namaKamar) {
		this.namaKamar = namaKamar;
	}

	public short getqKamar() {
		return qKamar;
	}

	public void setqKamar(short qKamar) {
		this.qKamar = qKamar;
	}

	public Byte getQtyBed() {
		return qtyBed;
	}

	public void setQtyBed(Byte qtyBed) {
		this.qtyBed = qtyBed;
	}

	public Produk getProduk() {
		return produk;
	}

	public void setProduk(Produk produk) {
		this.produk = produk;
	}

}
