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 IpsrsKalibrasiVO extends BaseTransactionVO{
	
	@ManyToOne(fetch = FetchType.LAZY)
	@Caption(value = "Ipsrs Maintenance")
	private IpsrsMaintenanceVO ipsrsMaintenance;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@Caption(value = "Rekanan")
	private RekananVO rekanan;
	
	@Caption(value = "Personal Teknisi")
	private String personalTeknisi;
	
	@Caption(value = "Alert Kalibrasi")
	private Date alertKalibrasi;
	
	@Caption(value = "Jadwal Kalibrasi")
	private Date jadwalKalibrasi;
	
	@Caption(value = "Status Kalibrasi")
	private String statusKalibrasi;
	
	@OneToMany(cascade=CascadeType.ALL,fetch = FetchType.LAZY, mappedBy = "ipsrsKalibrasi")
	private Set<IpsrsTeknisiKalibrasiVO> ipsrsTeknisiKalibrasi = new HashSet<>();

	public IpsrsMaintenanceVO getIpsrsMaintenance() {
		return ipsrsMaintenance;
	}

	public void setIpsrsMaintenance(IpsrsMaintenanceVO ipsrsMaintenance) {
		this.ipsrsMaintenance = ipsrsMaintenance;
	}

	public RekananVO getRekanan() {
		return rekanan;
	}

	public void setRekanan(RekananVO rekanan) {
		this.rekanan = rekanan;
	}

	public String getPersonalTeknisi() {
		return personalTeknisi;
	}

	public void setPersonalTeknisi(String personalTeknisi) {
		this.personalTeknisi = personalTeknisi;
	}

	public Date getAlertKalibrasi() {
		return alertKalibrasi;
	}

	public void setAlertKalibrasi(Date alertKalibrasi) {
		this.alertKalibrasi = alertKalibrasi;
	}

	public Date getJadwalKalibrasi() {
		return jadwalKalibrasi;
	}

	public void setJadwalKalibrasi(Date jadwalKalibrasi) {
		this.jadwalKalibrasi = jadwalKalibrasi;
	}

	public String getStatusKalibrasi() {
		return statusKalibrasi;
	}

	public void setStatusKalibrasi(String statusKalibrasi) {
		this.statusKalibrasi = statusKalibrasi;
	}

	public Set<IpsrsTeknisiKalibrasiVO> getIpsrsTeknisiKalibrasi() {
		return ipsrsTeknisiKalibrasi;
	}

	public void setIpsrsTeknisiKalibrasi(Set<IpsrsTeknisiKalibrasiVO> ipsrsTeknisiKalibrasi) {
		this.ipsrsTeknisiKalibrasi = ipsrsTeknisiKalibrasi;
	}
	
	
}
