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

public class MappingCycleVO extends BaseTransactionVO {

	private static final long serialVersionUID = -4413177370190279071L;

	@ManyToOne
	@JoinColumn(name = "ObjectJenisLinenFk")
	private JenisLinenVO jenisLinen;

	@ManyToOne
	@JoinColumn(name = "ObjectMesinFk")
	private MesinVO mesin;

	@ManyToOne
	@JoinColumn(name = "ObjectProsesCuciFk")
	private ProsesCuciVO prosesCuci;

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "mappingCycle")
	@Caption(value = "mapCycle")
	private Set<MappingCycleLaundryVO> mapCycle = new HashSet<MappingCycleLaundryVO>();

	public JenisLinenVO getJenisLinen() {
		return jenisLinen;
	}

	public void setJenisLinen(JenisLinenVO jenisLinen) {
		this.jenisLinen = jenisLinen;
	}

	public MesinVO getMesin() {
		return mesin;
	}

	public void setMesin(MesinVO mesin) {
		this.mesin = mesin;
	}

	public ProsesCuciVO getProsesCuci() {
		return prosesCuci;
	}

	public void setProsesCuci(ProsesCuciVO prosesCuci) {
		this.prosesCuci = prosesCuci;
	}

	public Set<MappingCycleLaundryVO> getMapCycle() {
		return mapCycle;
	}

	public void setMapCycle(Set<MappingCycleLaundryVO> mapCycle) {
		this.mapCycle = mapCycle;
	}

}
