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 UnitLaporan
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "UnitLaporan_M")
public class UnitLaporanVO extends BaseMasterVO {
	@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="Kode Unit Laporan")
	private Byte kdUnitLaporan;

	public void setKdUnitLaporan(Byte kdUnitLaporan) {
		this.kdUnitLaporan = kdUnitLaporan;
	}

	@Column(name = "KdUnitLaporan", nullable = false )
	public Byte getKdUnitLaporan(){
		return this.kdUnitLaporan;
	}

	@ManyToOne
	@JoinColumn(name = "ObjectUnitLaporanHeadFk")
	@Caption(value="Object Unit Laporan Head")
	private UnitLaporanVO unitLaporanHead;

	public void setUnitLaporanHead(UnitLaporanVO unitLaporanHead) {
		this.unitLaporanHead = unitLaporanHead;
	}

	@Column(name = "KdUnitLaporanHead", nullable = true )
	public UnitLaporanVO getUnitLaporanHead(){
		return this.unitLaporanHead;
	}

	@Column(name = "ObjectUnitLaporanHeadFk", insertable=false,updatable=false)
	private Integer unitLaporanHeadId;

	@Caption(value="No Urut")
	private Byte noUrut;

	public void setNoUrut(Byte noUrut) {
		this.noUrut = noUrut;
	}

	@Column(name = "NoUrut", nullable = false )
	public Byte getNoUrut(){
		return this.noUrut;
	}

	@Caption(value="QUnit Laporan")
	private Byte qUnitLaporan;

	public void setqUnitLaporan(Byte qUnitLaporan) {
		this.qUnitLaporan = qUnitLaporan;
	}

	@Column(name = "QUnitLaporan", nullable = false )
	public Byte getqUnitLaporan(){
		return this.qUnitLaporan;
	}

	@Caption(value="Unit Laporan")
	private String unitLaporan;

	public void setUnitLaporan(String unitLaporan) {
		this.unitLaporan = unitLaporan;
	}

	@Column(name = "UnitLaporan", nullable = false , length = 50)
	public String getUnitLaporan(){
		return this.unitLaporan;
	}


}

