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.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;import org.hibernate.envers.Audited;

/**
 *  class PemeriksaanJaringanCairanTubuhDetail
 * 
 * @author shakato
 */
@Entity //@Audited
@Table(name = "PemeriksaanJaringanCairanTubuhDetail_T")
public class PemeriksaanJaringanCairanTubuhDetail extends BaseTransaction {

	@ManyToOne
	@JoinColumn(name = "ObjectSignOutOperationFk")
	@Caption(value = "ID SignOutOperation")
	@NotNull(message = "ID SignOutOperation tidak boleh kosong")
	private SignOutOperation signOutOperation;
	
	@Column(name = "ObjectSignOutOperationFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = false)
	private String signOutOperationId;
	
	@ManyToOne
	@JoinColumn(name = "ObjectPemeriksaanJaringanCairanTubuhFk")
	@Caption(value = "ID PemeriksaanJaringanCairanTubuh")
	private PemeriksaanJaringanCairanTubuh pemeriksaanJaringanCairanTubuh;
	
	@Column(name = "ObjectPemeriksaanJaringanCairanTubuhFk", insertable = false, updatable = false, nullable = false)
	private Integer pemeriksaanJaringanCairanTubuhId;
	
	@Column(name = "Status", nullable = true)
	@Caption(value = "Status")
	private Boolean status;
	
	@Column(name = "Keterangan", nullable = true)
	@Caption(value = "Keterangan")
	private String keterangan;

	public SignOutOperation getSignOutOperation() {
		return signOutOperation;
	}

	public void setSignOutOperation(SignOutOperation signOutOperation) {
		this.signOutOperation = signOutOperation;
	}

	public String getSignOutOperationId() {
		return signOutOperationId;
	}

	public void setSignOutOperationId(String signOutOperationId) {
		this.signOutOperationId = signOutOperationId;
	}

	public PemeriksaanJaringanCairanTubuh getPemeriksaanJaringanCairanTubuh() {
		return pemeriksaanJaringanCairanTubuh;
	}

	public void setPemeriksaanJaringanCairanTubuh(PemeriksaanJaringanCairanTubuh pemeriksaanJaringanCairanTubuh) {
		this.pemeriksaanJaringanCairanTubuh = pemeriksaanJaringanCairanTubuh;
	}

	public Integer getPemeriksaanJaringanCairanTubuhId() {
		return pemeriksaanJaringanCairanTubuhId;
	}

	public void setPemeriksaanJaringanCairanTubuhId(Integer pemeriksaanJaringanCairanTubuhId) {
		this.pemeriksaanJaringanCairanTubuhId = pemeriksaanJaringanCairanTubuhId;
	}

	public Boolean isStatus() {
		return status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

	public String getKeterangan() {
		return keterangan;
	}

	public void setKeterangan(String keterangan) {
		this.keterangan = keterangan;
	}
	
}