package com.jasamedika.medifirst2000.vo;

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 PapDetailRiwayatImunisasiDasarVO extends BaseTransactionVO{
	@ManyToOne
	@JoinColumn(name = "ObjectPAPriwayatImunisasiDasarFk")
	@NotNull(message = "paPriwayatImunisasiDasar tidak boleh kosong")

	@Caption(value = "Object paPriwayatImunisasiDasar")
	private PapRiwayatImunisasiDasarVO paPriwayatImunisasiDasar;

	@Column(name = "ObjectPAPriwayatImunisasiDasarFk", insertable = false, updatable = false, nullable = false)
	private Integer paPriwayatImunisasiDasarId;
	
	@ManyToOne
	@JoinColumn(name = "ObjectImunisasiFk")
	@NotNull(message = "imunisasi tidak boleh kosong")

	@Caption(value = "Object imunisasi")
	private GenericViewVO imunisasi;

	@Column(name = "ObjectImunisasiFk", insertable = false, updatable = false, nullable = false)
	private Integer imunisasiId;
	
	//@NotNull(message = "keterangan tidak boleh kosong")
	@Column(name = "keterangan")
	@Caption(value = "keterangan")
	private String keterangan;

	public PapRiwayatImunisasiDasarVO getPaPriwayatImunisasiDasar() {
		return paPriwayatImunisasiDasar;
	}

	public void setPaPriwayatImunisasiDasar(PapRiwayatImunisasiDasarVO paPriwayatImunisasiDasar) {
		this.paPriwayatImunisasiDasar = paPriwayatImunisasiDasar;
	}

	public Integer getPaPriwayatImunisasiDasarId() {
		return paPriwayatImunisasiDasarId;
	}

	public void setPaPriwayatImunisasiDasarId(Integer paPriwayatImunisasiDasarId) {
		this.paPriwayatImunisasiDasarId = paPriwayatImunisasiDasarId;
	}

	public GenericViewVO getImunisasi() {
		return imunisasi;
	}

	public void setImunisasi(GenericViewVO imunisasi) {
		this.imunisasi = imunisasi;
	}

	public Integer getImunisasiId() {
		return imunisasiId;
	}

	public void setImunisasiId(Integer imunisasiId) {
		this.imunisasiId = imunisasiId;
	}

	public String getKeterangan() {
		return keterangan;
	}

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