package com.jasamedika.medifirst2000.vo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.*;

import com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;

import com.fasterxml.jackson.annotation.JsonBackReference;
import javax.validation.constraints.NotNull;
import com.jasamedika.medifirst2000.helper.Caption;

/**
 * class OrderPelayananDietVOVO
 * 
 * @author Generator
 */
public class OrderPelayananDietVO extends MedicalRecordTransactionVO {
	@Column(name = "NamaPemesan", nullable = false, length = 100)
	@Caption(value = "NamaPemesan")
	private String namaPemesan;

	public String getNamaPemesan() {
		return namaPemesan;
	}

	public void setNamaPemesan(String namaPemesan) {
		this.namaPemesan = namaPemesan;
	}

	@Column(name = "TglPesan", nullable = false, length = 100)
	@Caption(value = "TglPesan")
	private Date tglPesan;

	public Date getTglPesan() {
		return tglPesan;
	}

	public void setTglPesan(Date tglPesan) {
		this.tglPesan = tglPesan;
	}

	@ManyToOne
	@JoinColumn(name = "JenisWaktuFk")
	@NotNull(message = "Jenis Waktu Harus Diisi")
	@Caption(value = "Jenis Waktu")
	private JenisWaktuVO jenisWaktu;

	public JenisWaktuVO getJenisWaktu() {
		return jenisWaktu;
	}

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

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

	@ManyToOne
	@JoinColumn(name = "JenisDietFk")
	@NotNull(message = "Jenis Diet Harus Diisi")
	@Caption(value = "Jenis Diet")
	private JenisDietVO jenisDiet;

	public JenisDietVO getJenisDiet() {
		return jenisDiet;
	}

	public void setJenisDiet(JenisDietVO jenisDiet) {
		this.jenisDiet = jenisDiet;
	}

	@Column(name = "JenisDietFk", insertable = false, updatable = false)
	private Integer jenisDietId;

	@ManyToOne
	@JoinColumn(name = "NamaMenuFk")
	@NotNull(message = "Nama Menu Harus Diisi")
	@Caption(value = "Nama Menu")
	private ProdukVO namaMenu;

	public ProdukVO getNamaMenu() {
		return namaMenu;
	}

	public void setNamaMenu(ProdukVO namaMenu) {
		this.namaMenu = namaMenu;
	}

	@Column(name = "NamaMenuFk", insertable = false, updatable = false)
	private Integer namaMenuId;

	@Column(name = "TipeMakanan", nullable = false, length = 100)
	@Caption(value = "TipeMakanan")
	private String tipeMakanan;

	public String getTipeMakanan() {
		return tipeMakanan;
	}

	public void setTipeMakanan(String tipeMakanan) {
		this.tipeMakanan = tipeMakanan;
	}

	@Column(name = "Minum", nullable = false, length = 100)
	@Caption(value = "Minum")
	private String minum;

	public String getMinum() {
		return minum;
	}

	public void setMinum(String minum) {
		this.minum = minum;
	}

	@ManyToOne
	@JoinColumn(name = "FrekuensiFk")
	@NotNull(message = "Frekuensi Harus Diisi")
	@Caption(value = "Frekuensi")
	private SatuanWaktuVO frekuensi;

	public SatuanWaktuVO getFrekuensi() {
		return frekuensi;
	}

	public void setFrekuensi(SatuanWaktuVO frekuensi) {
		this.frekuensi = frekuensi;
	}

	@Column(name = "FrekuensiFk", insertable = false, updatable = false)
	private Integer frekuensiId;

	@Column(name = "Volume", nullable = false, length = 100)
	@Caption(value = "Volume")
	private String volume;

	public String getVolume() {
		return volume;
	}

	public void setVolume(String volume) {
		this.volume = volume;
	}

}