package com.jasamedika.medifirst2000.vo;

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

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

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;
import com.jasamedika.medifirst2000.entities.IpsrsTeknisiKontakService;
import com.jasamedika.medifirst2000.entities.Pegawai;
import com.jasamedika.medifirst2000.entities.Rekanan;
import com.jasamedika.medifirst2000.helper.Caption;

public class IpsrsKontakServiceVO extends BaseTransactionVO{
	
	@ManyToOne(fetch = FetchType.LAZY)
	@Caption(value = "Ipsrs Maintenance")
	private IpsrsMaintenanceVO ipsrsMaintenance;
	
	@Caption(value = "Jenis Periode")
	private String jenisPeriode;
	
	@Caption(value = "jadwal KontakService Service")
	private String jadwalKontakService;
	
	@Caption(value = "Alert Kontak Service")
	private String alertKontakService;
	
	@Caption(value = "status Kontak Service")
	private String statusKontakService;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@Caption(value = "Rekanan")
	private RekananVO rekanan;
	
	@OneToMany(cascade=CascadeType.ALL,fetch = FetchType.LAZY, mappedBy = "ipsrsKontakService")
	private Set<IpsrsTeknisiKontakServiceVO> ipsrsTeknisiKontakService = new HashSet<>();

	public IpsrsMaintenanceVO getIpsrsMaintenance() {
		return ipsrsMaintenance;
	}

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

	public String getJenisPeriode() {
		return jenisPeriode;
	}

	public void setJenisPeriode(String jenisPeriode) {
		this.jenisPeriode = jenisPeriode;
	}

	public String getJadwalKontakService() {
		return jadwalKontakService;
	}

	public void setJadwalKontakService(String jadwalKontakService) {
		this.jadwalKontakService = jadwalKontakService;
	}

	public String getAlertKontakService() {
		return alertKontakService;
	}

	public void setAlertKontakService(String alertKontakService) {
		this.alertKontakService = alertKontakService;
	}

	public String getStatusKontakService() {
		return statusKontakService;
	}

	public void setStatusKontakService(String statusKontakService) {
		this.statusKontakService = statusKontakService;
	}

	public RekananVO getRekanan() {
		return rekanan;
	}

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

	public Set<IpsrsTeknisiKontakServiceVO> getIpsrsTeknisiKontakService() {
		return ipsrsTeknisiKontakService;
	}

	public void setIpsrsTeknisiKontakService(Set<IpsrsTeknisiKontakServiceVO> ipsrsTeknisiKontakService) {
		this.ipsrsTeknisiKontakService = ipsrsTeknisiKontakService;
	}
}
