package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity //@Audited
@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;

	public MappingDiagnosaKeperawatan getMappingDiagnosaKeperawatan() {
		return mappingDiagnosaKeperawatan;
	}

	public void setMappingDiagnosaKeperawatan(MappingDiagnosaKeperawatan mappingDiagnosaKeperawatan) {
		this.mappingDiagnosaKeperawatan = mappingDiagnosaKeperawatan;
	}

	public String getMappingDiagnosaKeperawatanId() {
		return mappingDiagnosaKeperawatanId;
	}

	public void setMappingDiagnosaKeperawatanId(String mappingDiagnosaKeperawatanId) {
		this.mappingDiagnosaKeperawatanId = mappingDiagnosaKeperawatanId;
	}

	public Intervensi getIntervensi() {
		return intervensi;
	}

	public void setIntervensi(Intervensi intervensi) {
		this.intervensi = intervensi;
	}

	public Integer getObjectIntervensiId() {
		return ObjectIntervensiId;
	}

	public void setObjectIntervensiId(Integer objectIntervensiId) {
		ObjectIntervensiId = objectIntervensiId;
	}

}
