100 lines
2.4 KiB
Java
100 lines
2.4 KiB
Java
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.Entity;
|
|
import javax.persistence.FetchType;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.persistence.OneToMany;
|
|
import javax.persistence.Table;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
|
import com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;
|
|
import com.jasamedika.medifirst2000.entities.PapKarakteristikNyeri;
|
|
import com.jasamedika.medifirst2000.entities.Produk;
|
|
import com.jasamedika.medifirst2000.entities.StrukOrder;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
|
|
public class PapBedahVO extends BaseTransactionVO{
|
|
@ManyToOne
|
|
//@NotNull(message = "RegistrasiPelayananPasien tidak boleh kosong")
|
|
private RegistrasiPelayananPasienVO registrasiPelayananPasien;
|
|
|
|
@ManyToOne
|
|
@NotNull(message = "Pasien tidak boleh kosong")
|
|
private PasienVO pasien;
|
|
|
|
@NotNull(message = "Tgl Input tidak boleh kosong")
|
|
@Column(name = "tglInput", nullable = false)
|
|
@Caption(value = "Tgl Input")
|
|
private Date tglInput;
|
|
|
|
@ManyToOne
|
|
@NotNull(message = "StrukOrder tidak boleh kosong")
|
|
private RuanganVO ruangan;
|
|
|
|
@ManyToOne
|
|
@NotNull(message = "StrukOrder tidak boleh kosong")
|
|
private RuanganVO ruanganTujuan;
|
|
|
|
@OneToMany
|
|
@Caption(value = "produkSet")
|
|
Set<ProdukVO> produkSet=new HashSet<ProdukVO>();
|
|
|
|
public RegistrasiPelayananPasienVO getRegistrasiPelayananPasien() {
|
|
return registrasiPelayananPasien;
|
|
}
|
|
|
|
public void setRegistrasiPelayananPasien(RegistrasiPelayananPasienVO registrasiPelayananPasien) {
|
|
this.registrasiPelayananPasien = registrasiPelayananPasien;
|
|
}
|
|
|
|
public PasienVO getPasien() {
|
|
return pasien;
|
|
}
|
|
|
|
public void setPasien(PasienVO pasien) {
|
|
this.pasien = pasien;
|
|
}
|
|
|
|
public Date getTglInput() {
|
|
return tglInput;
|
|
}
|
|
|
|
public void setTglInput(Date tglInput) {
|
|
this.tglInput = tglInput;
|
|
}
|
|
|
|
public Set<ProdukVO> getProdukSet() {
|
|
return produkSet;
|
|
}
|
|
|
|
public void setProdukSet(Set<ProdukVO> produkSet) {
|
|
this.produkSet = produkSet;
|
|
}
|
|
|
|
public RuanganVO getRuangan() {
|
|
return ruangan;
|
|
}
|
|
|
|
public void setRuangan(RuanganVO ruangan) {
|
|
this.ruangan = ruangan;
|
|
}
|
|
|
|
public RuanganVO getRuanganTujuan() {
|
|
return ruanganTujuan;
|
|
}
|
|
|
|
public void setRuanganTujuan(RuanganVO ruanganTujuan) {
|
|
this.ruanganTujuan = ruanganTujuan;
|
|
}
|
|
|
|
|
|
}
|