package com.jasamedika.medifirst2000.vo;

import java.util.Date;
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 com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;
import com.jasamedika.medifirst2000.helper.Caption;

public class K3CheckListFacillitySefetyVO extends BaseTransactionVO{

	@Caption(value="Tanggal")
	private Date tanggal;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@Caption(value="Ruangan")
	private RuanganVO ruangan;
	
	@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="k3CheckListFacillitySefety")
	private Set<K3CheckListFacillitySefetyDetailVO> k3CheckListFacillitySefetyDetail = new HashSet<>();

	public Date getTanggal() {
		return tanggal;
	}

	public void setTanggal(Date tanggal) {
		this.tanggal = tanggal;
	}

	public RuanganVO getRuangan() {
		return ruangan;
	}

	public void setRuangan(RuanganVO ruangan) {
		this.ruangan = ruangan;
	}

	public Set<K3CheckListFacillitySefetyDetailVO> getK3CheckListFacillitySefetyDetail() {
		return k3CheckListFacillitySefetyDetail;
	}

	public void setK3CheckListFacillitySefetyDetail(
			Set<K3CheckListFacillitySefetyDetailVO> k3CheckListFacillitySefetyDetail) {
		this.k3CheckListFacillitySefetyDetail = k3CheckListFacillitySefetyDetail;
	}
	
}
