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.*;

@Getter
@Setter
@Entity
@Table(name = "DetailPengkajianAwal_T")
public class DetailPengkajianAwal extends BaseTransaction {

	@ManyToOne(fetch = FetchType.LAZY)
	@Caption(value = "Pengkajian Awal Transaksi")
	@JoinColumn(name = "ObjectPengkajianAwalTransaksiFk")
	private PengkajianAwalTransaksi pengkajianAwalTransaksi;

	@Column(name = "ObjectPengkajianAwalTransaksiFk", insertable = false, updatable = false, nullable = false)
	private String pengkajianAwalTransaksiId;

	@ManyToOne(fetch = FetchType.LAZY)
	@Caption(value = "Pengkajian Awal")
	@JoinColumn(name = "ObjectPengkajianAwalFk")
	private PengkajianAwal pengkajianAwal;

	@Column(name = "ObjectPengkajianAwalFk", insertable = false, updatable = false)
	private Integer pengkajianAwalId;

	@Caption(value = "Nilai")
	@Column(name = "Nilai")
	private String nilai;

}
