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.helper.Caption;import org.hibernate.envers.Audited;

/**
 *  class DetailOrderTindakanLab
 * 
 * @author Generator
 */
@Entity //@Audited
@Table(name = "DetailOrderTindakan_T")
public class DetailOrderTindakan  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;


}