package com.jasamedika.medifirst2000.entities;

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

import javax.persistence.*;
import javax.validation.constraints.NotNull;

@Getter
@Setter
@Entity
@Table(name = "DetailDiagnosaSekunder_T")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class DetailDiagnosaSekunder extends BaseTransaction {

	@ManyToOne
	@JoinColumn(name = "DiagnosaFk")
	@NotNull(message = "Diagnosa tidak boleh kosong")
	private Diagnosa diagnosa;

	@Column(name = "DiagnosaFk", insertable = false, updatable = false)
	private Integer diagnosaId;

	@ManyToOne
	@JoinColumn(name = "TransferPasienInternalFk")
	private TransferPasienInternal transferPasienInternal;

	@Column(name = "TransferPasienInternalFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false)
	private String transferPasienInternalId;

}
