package com.jasamedika.medifirst2000.entities;

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

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

@Entity
@Table(name = "MapParameterToLaporanUjiHasil_T")
public class MapParameterToLaporanUjiHasil extends BaseTransaction{
	
	@JsonBackReference
	@ManyToOne
	@JoinColumn(name = "ObjectLaporanUjiHasilFk")
	@Caption(value="Object Laporan uji hasil fk")
	private LaporanUjiHasil laporanUjiHasil;
	
	@Column(name = "ObjectLaporanUjiHasilFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = true)
	private String ObjectLaporanUjiHasilId;
	
	@ManyToOne
	@JoinColumn(name = "ObjectParameterFk")
	@Caption(value="Object parameter fk")
	private Parameter parameter;
	
	@Column(name = "ObjectParameterFk", insertable = false, updatable = false, nullable = true)
	private Integer ObjectParameterId;
	
	@ManyToOne
	@JoinColumn(name = "ObjectSatuanStandarFk")
	@Caption(value="Object satuan standar fk")
	private SatuanStandar satuanStandar;
	
	@Column(name = "ObjectSatuanStandarFk", insertable = false, updatable = false, nullable = true)
	private Integer ObjectSatuanStandarId;
	
	@Column(name = "HasilUji", nullable = true)
	@Caption(value = "hasil uji")
	private String hasilUji;
	
	@ManyToOne
	@JoinColumn(name = "ObjectBakuMutuFk")
	@Caption(value="Object baku mutu fk")
	private BakuMutu bakuMutu;
	
	@Column(name = "ObjectBakuMutuFk", insertable = false, updatable = false, nullable = true)
	private Integer ObjectBakuMutuId;

	public LaporanUjiHasil getLaporanUjiHasil() {
		return laporanUjiHasil;
	}

	public void setLaporanUjiHasil(LaporanUjiHasil laporanUjiHasil) {
		this.laporanUjiHasil = laporanUjiHasil;
	}

	public Parameter getParameter() {
		return parameter;
	}

	public void setParameter(Parameter parameter) {
		this.parameter = parameter;
	}

	public SatuanStandar getSatuanStandar() {
		return satuanStandar;
	}

	public void setSatuanStandar(SatuanStandar satuanStandar) {
		this.satuanStandar = satuanStandar;
	}

	public String getHasilUji() {
		return hasilUji;
	}

	public void setHasilUji(String hasilUji) {
		this.hasilUji = hasilUji;
	}

	public BakuMutu getBakuMutu() {
		return bakuMutu;
	}

	public void setBakuMutu(BakuMutu bakuMutu) {
		this.bakuMutu = bakuMutu;
	}

}
