package com.jasamedika.medifirst2000.entities;

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.fasterxml.jackson.annotation.JsonBackReference;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;import org.hibernate.envers.Audited;

@Entity //@Audited
@Table(name="PapDataVisus_T")
public class PapDataVisus extends BaseTransaction{
	/*@ManyToOne
	@JoinColumn(name = "ObjectPapMataFk")
	@NotNull(message = "PapMata tidak boleh kosong")
	private PapMata papMata;

	@Column(name = "ObjectPapMataFk", insertable = false, updatable = false, nullable = false)
	private String papMataId;*/

	@ManyToOne
	@JoinColumn(name = "ObjectDataVisusFk")
	@NotNull(message = "DataVisus tidak boleh kosong")
	private DataVisus dataVisus;
	
	@Column(name = "ObjectDataVisusFk", insertable = false, updatable = false, nullable = false)
	private Integer dataVisusId;
	

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


	/*public PapMata getPapMata() {
		return papMata;
	}


	public void setPapMata(PapMata papMata) {
		this.papMata = papMata;
	}
*/

	public DataVisus getDataVisus() {
		return dataVisus;
	}


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


	public Boolean getIsNilai() {
		return isNilai;
	}


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