package com.jasamedika.medifirst2000.vo;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

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 JenisKomponenHarga
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "JenisKomponenHarga_M")
public class JenisKomponenHargaVO extends BaseMasterVO {
	@Caption(value="Jenis Komponen Harga")
	private String jenisKomponenHarga;

	public void setJenisKomponenHarga(String jenisKomponenHarga) {
		this.jenisKomponenHarga = jenisKomponenHarga;
	}

	@Column(name = "JenisKomponenHarga", nullable = false , length = 30)
	public String getJenisKomponenHarga(){
		return this.jenisKomponenHarga;
	}

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

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

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

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

	@Caption(value="Kode Jenis Komponen Harga")
	private Byte kdJenisKomponenHarga;

	public void setKdJenisKomponenHarga(Byte kdJenisKomponenHarga) {
		this.kdJenisKomponenHarga = kdJenisKomponenHarga;
	}

	@Column(name = "KdJenisKomponenHarga", nullable = false )
	public Byte getKdJenisKomponenHarga(){
		return this.kdJenisKomponenHarga;
	}

	@ManyToOne
	@JoinColumn(name = "ObjectJenisKomponenHargaHeadFk")
	@Caption(value="Object Jenis Komponen Harga Head")
	private JenisKomponenHargaVO jenisKomponenHargaHead;

	public void setJenisKomponenHargaHead(JenisKomponenHargaVO jenisKomponenHargaHead) {
		this.jenisKomponenHargaHead = jenisKomponenHargaHead;
	}

	@Column(name = "KdJenisKomponenHargaHead", nullable = true )
	public JenisKomponenHargaVO getJenisKomponenHargaHead(){
		return this.jenisKomponenHargaHead;
	}

	@Column(name = "ObjectJenisKomponenHargaHeadFk", insertable=false,updatable=false)
	private Integer jenisKomponenHargaHeadId;

	@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="QJenis Komponen Harga")
	private Byte qJenisKomponenHarga;

	public void setqJenisKomponenHarga(Byte qJenisKomponenHarga) {
		this.qJenisKomponenHarga = qJenisKomponenHarga;
	}

	@Column(name = "QJenisKomponenHarga", nullable = false )
	public Byte getqJenisKomponenHarga(){
		return this.qJenisKomponenHarga;
	}

	/*//
	@OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL, mappedBy="kdjeniskomponenhargahead")
	private Set<JenisKomponenHarga> JenisKomponenHargaSet = new HashSet<JenisKomponenHarga>();

	public Set<JenisKomponenHarga> getJenisKomponenHargaSet() {
		return JenisKomponenHargaSet;
	}

	public void setJenisKomponenHargaSet(Set<JenisKomponenHarga> jenisKomponenHargaSet) {
		JenisKomponenHargaSet = jenisKomponenHargaSet;
	}*/

}

