package com.jasamedika.medifirst2000.entities;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.*;
import com.jasamedika.medifirst2000.entities.Produk;
import com.jasamedika.medifirst2000.entities.OrderProduk;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.jasamedika.medifirst2000.base.BaseTransaction;


import javax.validation.constraints.NotNull;
import com.jasamedika.medifirst2000.helper.Caption;import org.hibernate.envers.Audited;

/**
 *  class DetailOrderTindakanLab
 * 
 * @author Generator
 */
@Entity //@Audited
@Table(name = "DetailOrderTindakanLab_T")
public class DetailOrderTindakanLab  extends MedicalRecordTransaction{
@ManyToOne
	 @JoinColumn(name = "ProdukFk")
	 @NotNull(message = "Produk Harus Diisi")
	 @Caption(value = "Produk")
	private Produk produk;
	public Produk getProduk() {
		return produk;
	}
	public void setProduk(Produk produk) {
		this.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;

	public OrderProduk getOrderProduk() {
		return orderProduk;
	}
	public void setOrderProduk(OrderProduk orderProduk) {
		this.orderProduk = orderProduk;
	}
	@Column(name = "OrderProdukFk", insertable=false,updatable=false)
	private String orderTindakanLabId;


}