package com.jasamedika.medifirst2000.vo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import org.hibernate.validator.constraints.NotEmpty;

import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.internal.util.logging.Messages;

import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import com.jasamedika.medifirst2000.helper.Caption;

/**
 *  class KategoryDiet
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "KategoryDiet_M")
public class KategoryDietVO extends BaseMasterVO {
	@Caption(value="Kategory Diet")
	private String kategoryDiet;

	public void setKategoryDiet(String kategoryDiet) {
		this.kategoryDiet = kategoryDiet;
	}

	@Column(name = "KategoryDiet", nullable = false , length = 30)
	public String getKategoryDiet(){
		return this.kategoryDiet;
	}

	@Caption(value="Kode Kategory Diet")
	private Byte kdKategoryDiet;

	public void setKdKategoryDiet(Byte kdKategoryDiet) {
		this.kdKategoryDiet = kdKategoryDiet;
	}

	@Column(name = "KdKategoryDiet", nullable = false )
	public Byte getKdKategoryDiet(){
		return this.kdKategoryDiet;
	}

	@ManyToOne
	@JoinColumn(name = "ObjectKelompokProdukFk")
	@Caption(value="Object Kelompok Produk")
	private KelompokProdukVO kelompokProduk;

	public void setKelompokProduk(KelompokProdukVO kelompokProduk) {
		this.kelompokProduk = kelompokProduk;
	}

	@Column(name = "KdKelompokProduk", nullable = true )
	public KelompokProdukVO getKelompokProduk(){
		return this.kelompokProduk;
	}

	@Column(name = "ObjectKelompokProdukFk", insertable=false,updatable=false)
	private Integer kelompokProdukId;

	@Caption(value="QKategory Diet")
	private Byte qKategoryDiet;

	public void setqKategoryDiet(Byte qKategoryDiet) {
		this.qKategoryDiet = qKategoryDiet;
	}

	@Column(name = "QKategoryDiet", nullable = false )
	public Byte getqKategoryDiet(){
		return this.qKategoryDiet;
	}


}

