package com.jasamedika.medifirst2000.vo; import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.FetchType; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import com.jasamedika.medifirst2000.base.vo.BaseMasterVO; import com.jasamedika.medifirst2000.helper.Caption; public class K3KelompokLpjGedungVO extends BaseMasterVO{ @ManyToOne(fetch=FetchType.LAZY) @Caption(value="K3 Facillity Check") private K3FacillityCheckVO k3FacillityCheck; @Caption(value="Nama Kelompok") @Column(name="NamaKelompok", length=50, nullable=false) private String namaKelompok; @OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="k3KelompokLpjGedung") private Set k3ItemPeriksaGedung = new HashSet<>(); public K3FacillityCheckVO getK3FacillityCheck() { return k3FacillityCheck; } public void setK3FacillityCheck(K3FacillityCheckVO k3FacillityCheck) { this.k3FacillityCheck = k3FacillityCheck; } public String getNamaKelompok() { return namaKelompok; } public void setNamaKelompok(String namaKelompok) { this.namaKelompok = namaKelompok; } public Set getK3ItemPeriksaGedung() { return k3ItemPeriksaGedung; } public void setK3ItemPeriksaGedung(Set k3ItemPeriksaGedung) { this.k3ItemPeriksaGedung = k3ItemPeriksaGedung; } }