package com.jasamedika.medifirst2000.vo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import org.hibernate.validator.constraints.NotEmpty;

import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.internal.util.logging.Messages;

import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import com.jasamedika.medifirst2000.helper.Caption;

/**
 *  class TempatTidur
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "TempatTidur_M")
public class TempatTidurVO extends BaseMasterVO {
	@ManyToOne
	@JoinColumn(name = "ObjectKamarFk")
	@NotNull(message="Object KamarVO Harus Diisi")
	@Caption(value="Object Kamar")
	private KamarVO kamar;

	public void setKamar(KamarVO kamar) {
		this.kamar = kamar;
	}

	@Column(name = "KdKamar", nullable = false )
	public KamarVO getKamar(){
		return this.kamar;
	}

	@Column(name = "ObjectKamarFk", insertable=false,updatable=false)
	private Integer kamarId;

	@ManyToOne
	@JoinColumn(name = "ObjectStatusBedFk")
	@NotNull(message="Object Status Bed Harus Diisi")
	@Caption(value="Object Status Bed")
	private StatusBedVO statusBed;

	public void setStatusBed(StatusBedVO statusBed) {
		this.statusBed = statusBed;
	}

	@Column(name = "KdStatusBed", nullable = false )
	public StatusBedVO getStatusBed(){
		return this.statusBed;
	}

	@Column(name = "ObjectStatusBedFk", insertable=false,updatable=false)
	private Integer statusBedId;

	@Caption(value="Nomor Bed")
	private Byte nomorBed;

	public void setNomorBed(Byte nomorBed) {
		this.nomorBed = nomorBed;
	}

	@Column(name = "NomorBed", nullable = false )
	public Byte getNomorBed(){
		return this.nomorBed;
	}

	public Integer getKamarId() {
		return kamarId;
	}

	public void setKamarId(Integer kamarId) {
		this.kamarId = kamarId;
	}

	public Integer getStatusBedId() {
		return statusBedId;
	}

	public void setStatusBedId(Integer statusBedId) {
		this.statusBedId = statusBedId;
	}
	
	@ManyToOne(fetch = FetchType.LAZY)
	@Caption(value = "RuangPerawatanKemenkes")
	private RuangPerawatanKemenkesVO ruangPerawatanKemenkes;

	public RuangPerawatanKemenkesVO getRuangPerawatanKemenkes() {
		return ruangPerawatanKemenkes;
	}

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

