package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name = "IpsrsPemeriksaan_T")
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class IpsrsPemeriksaan extends BaseTransaction{
	
	@ManyToOne(fetch = FetchType.LAZY)
	@Caption(value = "Preventive Maintenance")
	@JoinColumn(name = "ObjectIpsrsPreventiveMaintenanceFk")
	private IpsrsPreventiveMaintenance ipsrsPreventiveMaintenance;
	
	@Column(name = "ObjectIpsrsPreventiveMaintenanceFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false)
	private String ipsrsPreventiveMaintenanceId;

	@ManyToOne(fetch = FetchType.LAZY)
	@Caption(value = "Pengecekan Peralatan Mapping")
	@JoinColumn(name = "ObjectPengecekanPeralatanMappingFk")
	private PengecekanPeralatanMapping pengecekanPeralatanMapping;
	
	@Column(name = "ObjectPengecekanPeralatanMappingFk", insertable = false, updatable = false)
	private Integer pengecekanPeralatanMappingId;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@Caption(value = "Pemeriksaan Fisik")
	@JoinColumn(name = "ObjectPemeriksaanFisikFK")
	private IpsrsPemeriksaanAlat pemeriksaanFisik;
	
	@Column(name = "ObjectPemeriksaanFisikFK", insertable = false, updatable = false)
	private Integer pemeriksaanFisikId;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@Caption(value = "Pemeriksaan Fungsi")
	@JoinColumn(name = "ObjectPemeriksaanFungsiFk")
	private IpsrsPemeriksaanAlat pemeriksaanFungsi;
	
	@Column(name = "ObjectPemeriksaanFungsiFk", insertable = false, updatable = false)
	private Integer pemeriksaanFungsiId;

	public IpsrsPreventiveMaintenance getIpsrsPreventiveMaintenance() {
		return ipsrsPreventiveMaintenance;
	}

	public void setIpsrsPreventiveMaintenance(IpsrsPreventiveMaintenance ipsrsPreventiveMaintenance) {
		this.ipsrsPreventiveMaintenance = ipsrsPreventiveMaintenance;
	}

	public String getIpsrsPreventiveMaintenanceId() {
		return ipsrsPreventiveMaintenanceId;
	}

	public void setIpsrsPreventiveMaintenanceId(String ipsrsPreventiveMaintenanceId) {
		this.ipsrsPreventiveMaintenanceId = ipsrsPreventiveMaintenanceId;
	}

	public PengecekanPeralatanMapping getPengecekanPeralatanMapping() {
		return pengecekanPeralatanMapping;
	}

	public void setPengecekanPeralatanMapping(PengecekanPeralatanMapping pengecekanPeralatanMapping) {
		this.pengecekanPeralatanMapping = pengecekanPeralatanMapping;
	}

	public Integer getPengecekanPeralatanMappingId() {
		return pengecekanPeralatanMappingId;
	}

	public void setPengecekanPeralatanMappingId(Integer pengecekanPeralatanMappingId) {
		this.pengecekanPeralatanMappingId = pengecekanPeralatanMappingId;
	}

	public IpsrsPemeriksaanAlat getPemeriksaanFisik() {
		return pemeriksaanFisik;
	}

	public void setPemeriksaanFisik(IpsrsPemeriksaanAlat pemeriksaanFisik) {
		this.pemeriksaanFisik = pemeriksaanFisik;
	}

	public Integer getPemeriksaanFisikId() {
		return pemeriksaanFisikId;
	}

	public void setPemeriksaanFisikId(Integer pemeriksaanFisikId) {
		this.pemeriksaanFisikId = pemeriksaanFisikId;
	}

	public IpsrsPemeriksaanAlat getPemeriksaanFungsi() {
		return pemeriksaanFungsi;
	}

	public void setPemeriksaanFungsi(IpsrsPemeriksaanAlat pemeriksaanFungsi) {
		this.pemeriksaanFungsi = pemeriksaanFungsi;
	}

	public Integer getPemeriksaanFungsiId() {
		return pemeriksaanFungsiId;
	}

	public void setPemeriksaanFungsiId(Integer pemeriksaanFungsiId) {
		this.pemeriksaanFungsiId = pemeriksaanFungsiId;
	}

}
