package com.jasamedika.medifirst2000.entities;

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

import javax.persistence.*;

import static javax.persistence.FetchType.LAZY;

/**
 * class DokumenHistoriEvaluasi
 * 
 * @author Lukman Hakim
 */
@Getter
@Setter
@Entity
@Table(name = "DokumenHistoriEvaluasiK_T")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class DokumenHistoriEvaluasi extends BaseTransaction {

	@Column(name = "NoHistori", length = 30)
	@Caption(value = "No Histori")
	private String NoHistori;

	@ManyToOne(fetch = LAZY)
	@JoinColumn(name = "ObjectDokumenFk")
	@Caption(value = "Dokumen")
	private Dokumen dokumen;

	@Column(name = "ObjectDokumenFk", insertable = false, updatable = false)
	private Integer dokumenId;

	@Column(name = "HasilEvaluasi")
	private String hasilEvaluasi;

	@Column(name = "NilaiHasilEvaluasi")
	private Double nilaiHasilEvaluasi;

	@Column(name = "MemoRekomendaasi")
	private String memoRekomendasi;

	@Column(name = "KeteranganLainnya")
	private String keteranganLainnya;

	@Column(name = "NoVerifikasi")
	private String noVerifikasi;

	@ManyToOne(fetch = LAZY)
	@JoinColumn(name = "ObjectDokumenHasilFk")
	@Caption(value = "Dokumen")
	private Dokumen dokumenHasil;

	@Column(name = "ObjectDokumenHasilFk", insertable = false, updatable = false)
	private Integer dokumenHasilId;

}