package com.jasamedika.medifirst2000.vo; import java.util.Date; import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.FetchType; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.validation.constraints.NotNull; import com.jasamedika.medifirst2000.base.vo.BaseTransactionVO; import com.jasamedika.medifirst2000.helper.Caption; public class PapRiwayatImunisasiVO extends BaseTransactionVO { @ManyToOne @JoinColumn(name = "ObjectPasienFk") @NotNull(message = "Pasien tidak boleh kosong") private AntrianPasienDiPeriksaVO pasien; @NotNull(message = "Tgl Input tidak boleh kosong") @Column(name = "tglInput", nullable = false) @Caption(value = "Tgl Input") private Date tglInput; @Column(name = "hasilImunisasi", nullable = true) @Caption(value = "hasilImunisasi") private String hasilImunisasi; @OneToMany(cascade=CascadeType.ALL,fetch = FetchType.LAZY, mappedBy = "papRiwayatImunisasi") @Caption(value = "papImunisasiDetailSet") private Set papImunisasiDetailSet=new HashSet(); @Column(name = "keteranganLainnya", nullable = true) @Caption(value = "keteranganLainnya") private String keteranganLainnya; public AntrianPasienDiPeriksaVO getPasien() { return pasien; } public void setPasien(AntrianPasienDiPeriksaVO pasien) { this.pasien = pasien; } public Date getTglInput() { return tglInput; } public void setTglInput(Date tglInput) { this.tglInput = tglInput; } public String getHasilImunisasi() { return hasilImunisasi; } public void setHasilImunisasi(String hasilImunisasi) { this.hasilImunisasi = hasilImunisasi; } public Set getPapImunisasiDetailSet() { return papImunisasiDetailSet; } public void setPapImunisasiDetailSet(Set papImunisasiDetailSet) { this.papImunisasiDetailSet = papImunisasiDetailSet; } public String getKeteranganLainnya() { return keteranganLainnya; } public void setKeteranganLainnya(String keteranganLainnya) { this.keteranganLainnya = keteranganLainnya; } }