package com.jasamedika.medifirst2000.vo;

import java.util.Date;

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.entities.Pegawai;
import com.jasamedika.medifirst2000.helper.Caption;

public class DataVaksinVO extends BaseTransaction {

	@ManyToOne
	@JoinColumn(name = "ObjectVaksinFk")
	@NotNull(message="Vaksin tidak boleh kosong")
	@Caption(value="Vaksin")
	private VaksinVO vaksinVO;
	
	@Caption(value="tglPeriksa")
	@Column(name = "tglPeriksa", nullable = true)
	private Date tglPeriksa;
	
	@Caption(value="namaVaksin")
	@Column(name = "namaVaksin", nullable = true)
	private String namaVaksin;

	@ManyToOne
	@JoinColumn(name = "ObjectDokterPemeriksaFk")
	@NotNull(message="Dokter Pemeriksa tidak boleh kosong")
	@Caption(value="Dokter Pemeriksa")
	private PegawaiVO dokterPemeriksa;
	
	public VaksinVO getVaksinVO() {
		return vaksinVO;
	}

	public void setVaksinVO(VaksinVO vaksinVO) {
		this.vaksinVO = vaksinVO;
	}

	public Date getTglPeriksa() {
		return tglPeriksa;
	}

	public void setTglPeriksa(Date tglPeriksa) {
		this.tglPeriksa = tglPeriksa;
	}

	public String getNamaVaksin() {
		return namaVaksin;
	}

	public void setNamaVaksin(String namaVaksin) {
		this.namaVaksin = namaVaksin;
	}

	public PegawaiVO getDokterPemeriksa() {
		return dokterPemeriksa;
	}

	public void setDokterPemeriksa(PegawaiVO dokterPemeriksa) {
		this.dokterPemeriksa = dokterPemeriksa;
	}
	
}
