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 javax.validation.constraints.NotNull;

/**
 * class RiwayatPenyakitPengobatan
 * 
 * @author Adik
 */
@Getter
@Setter
@Entity
@Table(name = "DetailDiagnosaTindakanPasien_T")
public class DetailDiagnosaTindakanPasien extends BaseTransaction {

	@ManyToOne
	@JoinColumn(name = "ObjectDiagnosaTindakanPasienFk")
	@NotNull(message = "Diagnosa Tindakan Pasien harus Diisi")
	@Caption(value = "Diagnosa Tindakan Pasien")
	private DiagnosaTindakanPasien diagnosaTindakanPasien;

	@Column(name = "jumlah")
	private Integer jumlah;

	@Column(name = "ObjectDiagnosaTindakanPasienFk", insertable = false, updatable = false, nullable = false)
	private String diagnosaTindakanPasienId;

	@ManyToOne
	@JoinColumn(name = "ObjectDiagnosaTindakanFk")
	@NotNull(message = "Diagnosa Tindakan")
	@Caption(value = "Diagnosa Tindakan ")
	private DiagnosaTindakan diagnosaTindakan;

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

}
