package com.jasamedika.medifirst2000.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;
import com.jasamedika.medifirst2000.helper.Caption;

public class PapDataVisusVO extends BaseTransactionVO{
	@ManyToOne
	@JoinColumn(name = "ObjectPapMataFk")
	@NotNull(message = "PapMata tidak boleh kosong")
	private PapMataVO papMata;

	@ManyToOne
	@JoinColumn(name = "ObjectDataVisusFk")
	@NotNull(message = "DataVisus tidak boleh kosong")
	private DataVisusVO dataVisus;	

	@NotNull(message = "isNilai tidak boleh kosong")
	@Column(name = "isNilai", nullable = false)
	@Caption(value = "isNilai")
	private Boolean isNilai;

	public PapMataVO getPapMata() {
		return papMata;
	}

	public void setPapMata(PapMataVO papMata) {
		this.papMata = papMata;
	}

	public DataVisusVO getDataVisus() {
		return dataVisus;
	}

	public void setDataVisus(DataVisusVO dataVisus) {
		this.dataVisus = dataVisus;
	}

	public Boolean getIsNilai() {
		return isNilai;
	}

	public void setIsNilai(Boolean isNilai) {
		this.isNilai = isNilai;
	}

}
