package com.jasamedika.medifirst2000.entities;

import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

/**
 * class DetailOrderTindakanLab
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@Table(name = "DetailOrderTindakan_T")
public class DetailOrderTindakan extends MedicalRecordTransaction {

	@ManyToOne
	@JoinColumn(name = "ProdukFk")
	@NotNull(message = "Produk Harus Diisi")
	@Caption(value = "Produk")
	private Produk produk;

	@Column(name = "ProdukFk", insertable = false, updatable = false)
	private Integer produkId;

	@ManyToOne
	@JoinColumn(name = "OrderProdukFk")
	@NotNull(message = "OrderProduk Harus Diisi")
	@Caption(value = "OrderProduk")
	private OrderProduk orderProduk;

	@Column(name = "OrderProdukFk", insertable = false, updatable = false)
	private String orderTindakanLabId;

}