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

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;import org.hibernate.envers.Audited;

/**
 *  class Agama
 * 
 * @author Generator
 */
@Entity //@Audited
@Table(name = "DetailInformasiMedis_T")
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class DetailInformasiMedis extends BaseTransaction {
	
	/*@ManyToOne
	@JoinColumn(name = "objectTransferPasienInternalFk")
	@Caption(value="Transfer Pasien Internal")
	private TransferPasienInternal transferPasienInternal;

	@Column(name = "objectTransferPasienInternalFk", insertable=false,updatable=false,nullable=true)
	private String transferPasienInternalId;*/
	
	@ManyToOne
	@JoinColumn(name = "objectTransferPasienExsternalFk")
	@Caption(value="Transfer Pasien Exsternal")
	@JsonBackReference
	private TransferPasienExsternal transferPasienExsternal;

	@Column(name = "objectTransferPasienExsternalFk", insertable=false,updatable=false,nullable=true)
	private String transferPasienExsternalId;
	
	@ManyToOne
	@JoinColumn(name = "objectInformasiMedisFk")
	@Caption(value="InformasiMedis Pasien")
	@JsonBackReference
	@NotNull(message="InformasiMedis Harus Diisi")
	private InformasiMedis informasiMedis;

	@Column(name = "objectInformasiMedisFk", insertable=false,updatable=false,nullable=false)
	private Integer informasiMedisId;
	
	@Column(name = "checked")
	private Boolean checked;

	public InformasiMedis getInformasiMedis() {
		return informasiMedis;
	}

	public void setInformasiMedis(InformasiMedis informasiMedis) {
		this.informasiMedis = informasiMedis;
	}

	public Integer getInformasiMedisId() {
		return informasiMedisId;
	}

	public void setInformasiMedisId(Integer informasiMedisId) {
		this.informasiMedisId = informasiMedisId;
	}

	public Boolean getChecked() {
		return checked;
	}

	public void setChecked(Boolean checked) {
		this.checked = checked;
	}

	public TransferPasienExsternal getTransferPasienExsternal() {
		return transferPasienExsternal;
	}

	public void setTransferPasienExsternal(TransferPasienExsternal transferPasienExsternal) {
		this.transferPasienExsternal = transferPasienExsternal;
	}

	public String getTransferPasienExsternalId() {
		return transferPasienExsternalId;
	}

	public void setTransferPasienExsternalId(String transferPasienExsternalId) {
		this.transferPasienExsternalId = transferPasienExsternalId;
	}

	
	
}

