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;

@Getter
@Setter
@Entity
@Table(name = "KesanPsikologis_Diagnosis_T")
public class KesanPsikologisDiagnosis extends BaseTransaction {

	@ManyToOne
	@JoinColumn(name = "PengkajianAwalPsikologiFk")
	@NotNull(message = "Pengkajian Awal Psikologi tidak boleh kosong")
	private PengkajianAwalPsikologi pengkajianAwalPsikologi;

	@ManyToOne
	@JoinColumn(name = "KesanPsikologis_DiagnosisDetailFk")
	@NotNull(message = "Kesan Psikologis-Diagnosis tidak boleh kosong")
	private KesanPsikologisDiagnosisDetail kesanPsikologis;

	@Column(name = "keterangan")
	@Caption(value = "Keterangan")
	private String keterangan;

}
