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 DetailGolonganProduk
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "DetailGolonganProduk_M")
public class DetailGolonganProdukVO extends BaseMasterVO {
	@Caption(value="Detail Golongan Produk")
	private String detailGolonganProduk;

	public void setDetailGolonganProduk(String detailGolonganProduk) {
		this.detailGolonganProduk = detailGolonganProduk;
	}

	@Column(name = "DetailGolonganProduk", nullable = false , length = 30)
	public String getDetailGolonganProduk(){
		return this.detailGolonganProduk;
	}

	@ManyToOne
	@JoinColumn(name = "ObjectDepartemenFk")
	@NotNull(message="Object DepartemenVO Harus Diisi")
	@Caption(value="Object Departemen")
	private DepartemenVO departemen;

	public void setDepartemen(DepartemenVO departemen) {
		this.departemen = departemen;
	}

	@Column(name = "KdDepartemen", nullable = false , length = 1)
	public DepartemenVO getDepartemen(){
		return this.departemen;
	}

	@Column(name = "ObjectDepartemenFk", insertable=false,updatable=false)
	private Integer departemenId;

	@Caption(value="Kode Detail Golongan Produk")
	private Byte kdDetailGolonganProduk;

	public void setKdDetailGolonganProduk(Byte kdDetailGolonganProduk) {
		this.kdDetailGolonganProduk = kdDetailGolonganProduk;
	}

	@Column(name = "KdDetailGolonganProduk", nullable = false )
	public Byte getKdDetailGolonganProduk(){
		return this.kdDetailGolonganProduk;
	}

	@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="QDetail Golongan Produk")
	private Byte qDetailGolonganProduk;

	public void setqDetailGolonganProduk(Byte qDetailGolonganProduk) {
		this.qDetailGolonganProduk = qDetailGolonganProduk;
	}

	@Column(name = "QDetailGolonganProduk", nullable = false )
	public Byte getqDetailGolonganProduk(){
		return this.qDetailGolonganProduk;
	}


}

