package com.jasamedika.medifirst2000.vo;

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

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

	public PegawaiVO getPegawai() {
		return pegawai;
	}

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

	public Set<DataGeneralCheckUpVO> getDataGeneralCheckUpSet() {
		return dataGeneralCheckUpSet;
	}

	public void setDataGeneralCheckUpSet(Set<DataGeneralCheckUpVO> dataGeneralCheckUpSet) {
		this.dataGeneralCheckUpSet = dataGeneralCheckUpSet;
	}
	
}
