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 com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

/**
 * class ResepRacikanOrderDetail
 * 
 * @author Generator
 */
@Entity
@Table(name = "ResepRacikanOrderDetail_T")
public class ResepRacikanOrderDetail extends BaseTransaction {
	@ManyToOne
	@JoinColumn(name = "ObjectNoResepFk")
	@Caption(value = "NoResep")
	private StrukResep noResep;

	@Column(name = "ObjectNoResepFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = false)
	private String noResepId;

	@Column(name = "resepKe", nullable = false)
	@Caption(value = "Resep Ke")
	private Byte resepKe;

	@Column(name = "racikanKe", nullable = false)
	@Caption(value = "Racikan Ke")
	private Byte racikanKe;

	@ManyToOne
	@JoinColumn(name = "ObjectProdukFk")
	@Caption(value = "Produk")
	private Produk produk;

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

	@Column(name = "qtyProdukNeedInMili", nullable = false)
	@Caption(value = "qtyProdukNeedInMili")
	private Double qtyProdukNeedInMili;

	@Column(name = "qtyProdukNeedInTablet", nullable = false)
	@Caption(value = "qtyProdukNeedInTablet")
	private Double qtyProdukNeedInTablet;

	@Column(name = "qtyProdukNeedTotal", nullable = false)
	@Caption(value = "qtyProdukNeedTotal")
	private Double qtyProdukNeedTotal;

	@ManyToOne
	@JoinColumn(name = "ObjectJenisKemasanFk")
	@Caption(value = "Jenis Kemasan")
	private JenisKemasan jenisKemasan;

	@Column(name = "ObjectJenisKemasanFk", insertable = false, updatable = false)
	private Integer jenisKemasanId;

	public StrukResep getNoResep() {
		return noResep;
	}

	public void setNoResep(StrukResep noResep) {
		this.noResep = noResep;
	}

	public Byte getResepKe() {
		return resepKe;
	}

	public void setResepKe(Byte resepKe) {
		this.resepKe = resepKe;
	}

	public Byte getRacikanKe() {
		return racikanKe;
	}

	public void setRacikanKe(Byte racikanKe) {
		this.racikanKe = racikanKe;
	}

	public Produk getProduk() {
		return produk;
	}

	public void setProduk(Produk produk) {
		this.produk = produk;
	}

	public Double getQtyProdukNeedInMili() {
		return qtyProdukNeedInMili;
	}

	public void setQtyProdukNeedInMili(Double qtyProdukNeedInMili) {
		this.qtyProdukNeedInMili = qtyProdukNeedInMili;
	}

	public Double getQtyProdukNeedInTablet() {
		return qtyProdukNeedInTablet;
	}

	public void setQtyProdukNeedInTablet(Double qtyProdukNeedInTablet) {
		this.qtyProdukNeedInTablet = qtyProdukNeedInTablet;
	}

	public Double getQtyProdukNeedTotal() {
		return qtyProdukNeedTotal;
	}

	public void setQtyProdukNeedTotal(Double qtyProdukNeedTotal) {
		this.qtyProdukNeedTotal = qtyProdukNeedTotal;
	}

	public JenisKemasan getJenisKemasan() {
		return jenisKemasan;
	}

	public void setJenisKemasan(JenisKemasan jenisKemasan) {
		this.jenisKemasan = jenisKemasan;
	}

	public String getNoResepId() {
		return noResepId;
	}

	public void setNoResepId(String noResepId) {
		this.noResepId = noResepId;
	}

	public Integer getProdukId() {
		return produkId;
	}

	public void setProdukId(Integer produkId) {
		this.produkId = produkId;
	}

	public Integer getJenisKemasanId() {
		return jenisKemasanId;
	}

	public void setJenisKemasanId(Integer jenisKemasanId) {
		this.jenisKemasanId = jenisKemasanId;
	}
}
