package com.jasamedika.medifirst2000.vo;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
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 HasilPemeriksaanPraKerjaVO extends BaseTransactionVO{
	@ManyToOne
	@JoinColumn(name = "ObjectPegawaiFk")
	@NotNull(message="Pegawai tidak boleh kosong")
	@Caption(value="Pegawai")
	private PegawaiVO pegawai;
		
	@OneToMany(cascade=CascadeType.ALL,fetch = FetchType.LAZY, mappedBy = "hasilPemeriksaanPraKerja")
	@Caption(value = "dataPemeriksaanPraKerjaSet")
	private Set<DataPemeriksaanPraKerjaVO> dataPemeriksaanPraKerjaSet=new HashSet<DataPemeriksaanPraKerjaVO>();

	public PegawaiVO getPegawai() {
		return pegawai;
	}

	public void setPegawai(PegawaiVO pegawai) {
		this.pegawai = pegawai;
	}

	public Set<DataPemeriksaanPraKerjaVO> getDataPemeriksaanPraKerjaSet() {
		return dataPemeriksaanPraKerjaSet;
	}

	public void setDataPemeriksaanPraKerjaSet(Set<DataPemeriksaanPraKerjaVO> dataPemeriksaanPraKerjaSet) {
		this.dataPemeriksaanPraKerjaSet = dataPemeriksaanPraKerjaSet;
	}
	
}
