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 = "DetailIntervensi_T")
public class DetailIntervensi extends BaseTransaction {

	@ManyToOne
	@JoinColumn(name = "ObjectDiagnosaKeperawatan")
	@Caption(value = "DiagnosaKeperawatan")
	private MappingDiagnosaKeperawatan mappingDiagnosaKeperawatan;

	@Column(name = "ObjectDiagnosaKeperawatan", insertable = false, updatable = false)
	private String mappingDiagnosaKeperawatanId;

	@ManyToOne
	@JoinColumn(name = "ObjectIntervensi")
	@Caption(value = "Intervensi")
	private Intervensi intervensi;

	@Column(name = "ObjectIntervensi", insertable = false, updatable = false)
	private Integer ObjectIntervensiId;

}
