package com.jasamedika.medifirst2000.entities;

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

import javax.persistence.*;

@Getter
@Setter
@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)
	private String ObjectLaporanUjiHasilId;

	@ManyToOne
	@JoinColumn(name = "ObjectParameterFk")
	@Caption(value = "Object parameter fk")
	private Parameter parameter;

	@Column(name = "ObjectParameterFk", insertable = false, updatable = false)
	private Integer ObjectParameterId;

	@ManyToOne
	@JoinColumn(name = "ObjectSatuanStandarFk")
	@Caption(value = "Object satuan standar fk")
	private SatuanStandar satuanStandar;

	@Column(name = "ObjectSatuanStandarFk", insertable = false, updatable = false)
	private Integer ObjectSatuanStandarId;

	@Column(name = "HasilUji")
	@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)
	private Integer ObjectBakuMutuId;

}
