package com.jasamedika.medifirst2000.vo;

import java.util.Date;

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

import com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;
import com.jasamedika.medifirst2000.helper.Caption;

public class PersiapanPraAnestesiVO extends BaseTransactionVO{
	
	@ManyToOne
	@JoinColumn(name = "PerencanaanAnestesiFk")
	@NotNull(message = "Perencanaan Anestesi tidak boleh kosong")
	private PerencanaanAnestesiVO perencanaanAnestesi;
	
	@Column(name = "PerencanaanAnestesiFk", insertable=false,updatable=false)
	private String perencanaanAnestesiId;
	
	@ManyToOne
	@JoinColumn(name = "PersiapanPraAnestesiDetailFk")
	@NotNull(message = "Persiapan PraAnestesi Detail tidak boleh kosong")
	private PersiapanPraAnestesiDetailVO persiapanPraAnestesiDetail;
	
	@Column(name = "PersiapanPraAnestesiDetailFk", insertable=false,updatable=false)
	private Integer persiapanPraAnestesiDetailId;
	
	@Column(name = "Jam")
	@Caption(value="Jam")
	private String jam;
	
	@Column(name = "Tanggal")
	@Caption(value="Tanggal")
	private Date tanggal;

	public PerencanaanAnestesiVO getPerencanaanAnestesi() {
		return perencanaanAnestesi;
	}

	public void setPerencanaanAnestesi(PerencanaanAnestesiVO perencanaanAnestesi) {
		this.perencanaanAnestesi = perencanaanAnestesi;
	}

	public String getPerencanaanAnestesiId() {
		return perencanaanAnestesiId;
	}

	public void setPerencanaanAnestesiId(String perencanaanAnestesiId) {
		this.perencanaanAnestesiId = perencanaanAnestesiId;
	}

	public PersiapanPraAnestesiDetailVO getPersiapanPraAnestesiDetail() {
		return persiapanPraAnestesiDetail;
	}

	public void setPersiapanPraAnestesiDetail(PersiapanPraAnestesiDetailVO persiapanPraAnestesiDetail) {
		this.persiapanPraAnestesiDetail = persiapanPraAnestesiDetail;
	}

	public Integer getPersiapanPraAnestesiDetailId() {
		return persiapanPraAnestesiDetailId;
	}

	public void setPersiapanPraAnestesiDetailId(Integer persiapanPraAnestesiDetailId) {
		this.persiapanPraAnestesiDetailId = persiapanPraAnestesiDetailId;
	}
	
	public String getJam() {
		return jam;
	}

	public void setJam(String jam) {
		this.jam = jam;
	}

	public Date getTanggal() {
		return tanggal;
	}

	public void setTanggal(Date tanggal) {
		this.tanggal = tanggal;
	}

}
