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

@Entity //@Audited
@Table(name = "PapKarakteristikNyeri_T")
public class PapKarakteristikNyeri extends BaseTransaction{
	@JsonBackReference
	@ManyToOne
	@JoinColumn(name = "ObejctPapSkriningNyeriFk")
	@Caption(value = "Object PapSkriningNyeri")
	private PapSkriningNyeri papSkriningNyeri;
	
	@Column(name = "ObejctPapSkriningNyeriFk", insertable = false, updatable = false, nullable = true)
	private String papSkriningNyeriId;

	@ManyToOne
	@JoinColumn(name = "ObejctRmKarakteristikNyeriFk")
	@Caption(value = "Object RmKarakteristikNyeri")
	private DataKarateristikNyeri dataKarakteristikNyeri;

	@Column(name = "ObejctRmKarakteristikNyeriFk", insertable = false, updatable = false, nullable = true)
	private Integer rmKarakteristikNyeriId;

	@NotNull(message = "Is Nilai tidak boleh kosong")
	@Column(name = "isNilai")
	@Caption(value = "Is Nilai")
	private Boolean isNilai;
	
	public PapSkriningNyeri getPapSkriningNyeri() {
		return papSkriningNyeri;
	}

	public void setPapSkriningNyeri(PapSkriningNyeri papSkriningNyeri) {
		this.papSkriningNyeri = papSkriningNyeri;
	}

	public Boolean getIsNilai() {
		return isNilai;
	}

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

	public DataKarateristikNyeri getDataKarakteristikNyeri() {
		return dataKarakteristikNyeri;
	}

	public void setDataKarakteristikNyeri(DataKarateristikNyeri dataKarakteristikNyeri) {
		this.dataKarakteristikNyeri = dataKarakteristikNyeri;
	}

}
