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 = "KeteranganLainLainDetail_T")
public class KeteranganLainLainDetail 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 = "ObjectketeranganLainLainFk")
	@NotNull(message = "Object keteranganLainLain Harus Diisi")
	@Caption(value = "Object keteranganLainLain")
	private KeteranganLainLain keteranganLainLain;

	@Column(name = "ObjectketeranganLainLainFk", insertable = false, updatable = false, nullable = false)
	private Integer keteranganLainLainId;

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

}
