package com.jasamedika.medifirst2000.entities;

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;

@Getter
@Setter
@Entity
@Table(name = "DiagnosaTindakans_T")
public class DiagnosaTindakans extends BaseTransaction {

	@ManyToOne(fetch = LAZY)
	@JoinColumn(name = "ObjectDiagnosaTindakanFk")
	@Caption(value = "Object DiagnosaTindakan")
	private DiagnosaTindakan diagnosaTindakan;

	@Column(name = "ObjectDiagnosaTindakanFk", insertable = false, updatable = false, nullable = false)
	private Integer diagnosaTindakanId;

	@ManyToOne(fetch = LAZY)
	@JoinColumn(name = "ObjectRehabilitasiFormulirKlaimFk")
	@Caption(value = "Object RehabilitasiFormulirKlaim")
	private RehabilitasiFormulirKlaim rehabilitasiFormulirKlaim;

	@Column(name = "ObjectRehabilitasiFormulirKlaimFk", insertable = false, updatable = false, nullable = false)
	private String rehabilitasiFormulirKlaimId;

	@Column(name = "diagnosisFungsi")
	@Caption(value = "diagnosisFungsi")
	private Boolean diagnosisFungsi;

	@Column(name = "tataLaksanaKFR")
	@Caption(value = "tataLaksanaKFR")
	private Boolean tataLaksanaKFR;

	@Column(name = "diagnosisMedis")
	@Caption(value = "diagnosisMedis")
	private Boolean diagnosisMedis;

}
