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.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity 
@Table(name="CairanFiksasiDetail_T")
public class CairanFiksasiDetail extends BaseTransaction{
	@ManyToOne
	@JoinColumn(name = "ObjectprodukDetailLabAnatomiFk")
	@Caption(value="Object produkDetailLabAnatomi")
	private ProdukDetailLabAnatomi produkDetailLabAnatomi;
	
	@Column(name = "ObjectprodukDetailLabAnatomiFk", insertable=false,updatable=false, nullable=false)
	private String produkDetailLabAnatomiId;

	@ManyToOne
	@JoinColumn(name = "ObjectcairanFiksasiFk")
	@NotNull(message="Object cairanFiksasi Harus Diisi")
	@Caption(value="Object cairanFiksasi")
	private CairanFiksasi cairanFiksasi;

	@Column(name = "ObjectcairanFiksasiFk", insertable=false,updatable=false, nullable=false)
	private Integer cairanFiksasiId;

	@Column(name = "isNilai")
	@Caption(value = "Is Nilai")
	private Boolean isNilai;

	public ProdukDetailLabAnatomi getProdukDetailLabAnatomi() {
		return produkDetailLabAnatomi;
	}

	public void setProdukDetailLabAnatomi(ProdukDetailLabAnatomi produkDetailLabAnatomi) {
		this.produkDetailLabAnatomi = produkDetailLabAnatomi;
	}

	public String getProdukDetailLabAnatomiId() {
		return produkDetailLabAnatomiId;
	}

	public void setProdukDetailLabAnatomiId(String produkDetailLabAnatomiId) {
		this.produkDetailLabAnatomiId = produkDetailLabAnatomiId;
	}

	public CairanFiksasi getCairanFiksasi() {
		return cairanFiksasi;
	}

	public void setCairanFiksasi(CairanFiksasi cairanFiksasi) {
		this.cairanFiksasi = cairanFiksasi;
	}

	public Integer getCairanFiksasiId() {
		return cairanFiksasiId;
	}

	public void setCairanFiksasiId(Integer cairanFiksasiId) {
		this.cairanFiksasiId = cairanFiksasiId;
	}

	public Boolean getIsNilai() {
		return isNilai;
	}

	public void setIsNilai(Boolean isNilai) {
		this.isNilai = isNilai;
	}
	
}
