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

@Getter
@Setter
@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;

}
