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 JenisRange
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "JenisRange_M")
public class JenisRangeVO extends BaseMasterVO {
	@Caption(value="Jenis Range")
	private String jenisRange;

	public void setJenisRange(String jenisRange) {
		this.jenisRange = jenisRange;
	}

	@Column(name = "JenisRange", nullable = false , length = 50)
	public String getJenisRange(){
		return this.jenisRange;
	}

	@Caption(value="Kode Jenis Range")
	private Byte kdJenisRange;

	public void setKdJenisRange(Byte kdJenisRange) {
		this.kdJenisRange = kdJenisRange;
	}

	@Column(name = "KdJenisRange", nullable = false )
	public Byte getKdJenisRange(){
		return this.kdJenisRange;
	}

	@ManyToOne
	@JoinColumn(name = "ObjectJenisRangeHeadFk")
	@Caption(value="Object Jenis RangeVO Head")
	private JenisRangeVO jenisRangeHead;

	public void setJenisRangeHead(JenisRangeVO jenisRangeHead) {
		this.jenisRangeHead = jenisRangeHead;
	}

	@Column(name = "KdJenisRangeHead", nullable = true )
	public JenisRangeVO getJenisRangeHead(){
		return this.jenisRangeHead;
	}

	@Column(name = "ObjectJenisRangeHeadFk", insertable=false,updatable=false)
	private Integer jenisRangeHeadId;

	@Caption(value="QJenis Range")
	private Byte qJenisRange;

	public void setqJenisRange(Byte qJenisRange) {
		this.qJenisRange = qJenisRange;
	}

	@Column(name = "QJenisRange", nullable = false )
	public Byte getqJenisRange(){
		return this.qJenisRange;
	}

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

	public Set<JenisRange> getJenisRangeSet() {
		return JenisRangeSet;
	}

	public void setJenisRangeSet(Set<JenisRange> jenisRangeSet) {
		JenisRangeSet = jenisRangeSet;
	}*/

}

