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 ResepRacikanOrder
 * 
 * @author Generator
 */
@Entity
@Table(name = "ResepRacikanOrder_T")
public class ResepRacikanOrder 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;

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

	@ManyToOne
	@JoinColumn(name = "ObjectSatuanStandarFk")
	@Caption(value = "NoResep")
	private SatuanStandar satuanStandar;

	@Column(name = "ObjectSatuanStandarFk", insertable = false, updatable = false)
	private Integer satuanStandarId;

	@Column(name = "aturanPakai")
	@Caption(value = "aturanPakai")
	private String aturanPakai;

	@ManyToOne
	@JoinColumn(name = "ObjectKeteranganPakaiFk")
	@Caption(value = "keteranganPakai")
	private Stigma keteranganPakai;

	@Column(name = "ObjectKeteranganPakaiFk", insertable = false, updatable = false)
	private Integer keteranganPakaiId;

	@ManyToOne
	@JoinColumn(name = "ObjectJenisWaktuFk")
	@Caption(value = "NoResep")
	private JenisWaktu jenisWaktu;

	@Column(name = "ObjectJenisWaktuFk", insertable = false, updatable = false)
	private Integer jenisWaktuId;

	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 Double getQtyProdukHasilRacikan() {
		return qtyProdukHasilRacikan;
	}

	public void setQtyProdukHasilRacikan(Double qtyProdukHasilRacikan) {
		this.qtyProdukHasilRacikan = qtyProdukHasilRacikan;
	}

	public SatuanStandar getSatuanStandar() {
		return satuanStandar;
	}

	public void setSatuanStandar(SatuanStandar satuanStandar) {
		this.satuanStandar = satuanStandar;
	}

	public String getAturanPakai() {
		return aturanPakai;
	}

	public void setAturanPakai(String aturanPakai) {
		this.aturanPakai = aturanPakai;
	}

	public Stigma getKeteranganPakai() {
		return keteranganPakai;
	}

	public void setKeteranganPakai(Stigma keteranganPakai) {
		this.keteranganPakai = keteranganPakai;
	}

	public JenisWaktu getJenisWaktu() {
		return jenisWaktu;
	}

	public void setJenisWaktu(JenisWaktu jenisWaktu) {
		this.jenisWaktu = jenisWaktu;
	}

	public String getNoResepId() {
		return noResepId;
	}

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

	public Integer getSatuanStandarId() {
		return satuanStandarId;
	}

	public void setSatuanStandarId(Integer satuanStandarId) {
		this.satuanStandarId = satuanStandarId;
	}

	public Integer getKeteranganPakaiId() {
		return keteranganPakaiId;
	}

	public void setKeteranganPakaiId(Integer keteranganPakaiId) {
		this.keteranganPakaiId = keteranganPakaiId;
	}

	public Integer getJenisWaktuId() {
		return jenisWaktuId;
	}

	public void setJenisWaktuId(Integer jenisWaktuId) {
		this.jenisWaktuId = jenisWaktuId;
	}

}
