package com.jasamedika.medifirst2000.vo;

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

import javax.persistence.CascadeType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

import com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;
import com.jasamedika.medifirst2000.helper.Caption;

public class PemakaianRuangRapatVO extends BaseTransactionVO {

	private static final long serialVersionUID = 6525483601831002022L;

	@ManyToOne
	@JoinColumn(name = "ObjectStrukOrderFk")
	private StrukOrderVO strukOrder;

	@OneToMany(cascade = CascadeType.ALL, mappedBy = "pemakaianRuangRapat")
	@Caption(value = "mapPegawaiRuangRapat")
	private Set<MappingPegawaiPemakaianRuangRapatVO> mapPegawaiRuangRapat = new HashSet<MappingPegawaiPemakaianRuangRapatVO>();

	public StrukOrderVO getStrukOrder() {
		return strukOrder;
	}

	public void setStrukOrder(StrukOrderVO strukOrder) {
		this.strukOrder = strukOrder;
	}

	public Set<MappingPegawaiPemakaianRuangRapatVO> getMapPegawaiRuangRapat() {
		return mapPegawaiRuangRapat;
	}

	public void setMapPegawaiRuangRapat(Set<MappingPegawaiPemakaianRuangRapatVO> mapPegawaiRuangRapat) {
		this.mapPegawaiRuangRapat = mapPegawaiRuangRapat;
	}

}
