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 KomponenIndexDetailRange
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "KomponenIndexDetailRange_M")
public class KomponenIndexDetailRangeVO extends BaseMasterVO {
	@Caption(value="Factor Rate Index Range")
	private Double factorRateIndexRange;

	public void setFactorRateIndexRange(Double factorRateIndexRange) {
		this.factorRateIndexRange = factorRateIndexRange;
	}

	@Column(name = "FactorRateIndexRange", nullable = false )
	public Double getFactorRateIndexRange(){
		return this.factorRateIndexRange;
	}

	@ManyToOne
	@JoinColumn(name = "ObjectKomponenIndexDetailFk")
	@NotNull(message="Object Komponen Index Detail Harus Diisi")
	@Caption(value="Object Komponen Index Detail")
	private KomponenIndexVO komponenIndexDetail;

	public void setKomponenIndexDetail(KomponenIndexVO komponenIndexDetail) {
		this.komponenIndexDetail = komponenIndexDetail;
	}

	@Column(name = "KdKomponenIndexDetail", nullable = false , length = 3)
	public KomponenIndexVO getKomponenIndexDetail(){
		return this.komponenIndexDetail;
	}

	@Column(name = "ObjectKomponenIndexDetailFk", insertable=false,updatable=false)
	private Integer komponenIndexDetailId;

	@ManyToOne
	@JoinColumn(name = "ObjectRangeFk")
	@NotNull(message="Object RangeVO Harus Diisi")
	@Caption(value="Object Range")
	private RangeVO range;

	public void setRange(RangeVO range) {
		this.range = range;
	}

	@Column(name = "KdRange", nullable = false )
	public RangeVO getRange(){
		return this.range;
	}

	@Column(name = "ObjectRangeFk", insertable=false,updatable=false)
	private Integer rangeId;

	@Caption(value="Nilai Index Range")
	private Double nilaiIndexRange;

	public void setNilaiIndexRange(Double nilaiIndexRange) {
		this.nilaiIndexRange = nilaiIndexRange;
	}

	@Column(name = "NilaiIndexRange", nullable = true )
	public Double getNilaiIndexRange(){
		return this.nilaiIndexRange;
	}

	@Caption(value="Persen Nilai Index Range")
	private Double persenNilaiIndexRange;

	public void setPersenNilaiIndexRange(Double persenNilaiIndexRange) {
		this.persenNilaiIndexRange = persenNilaiIndexRange;
	}

	@Column(name = "PersenNilaiIndexRange", nullable = true )
	public Double getPersenNilaiIndexRange(){
		return this.persenNilaiIndexRange;
	}


}

