package com.jasamedika.medifirst2000.entities;

import java.sql.Date;
import java.util.HashSet;
import java.util.Set;

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

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;import org.hibernate.envers.Audited;

@Entity //@Audited
@Table(name = "SignInOperationDetailQuisioner_T")
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class SignInOperationDetailQuisioner extends BaseTransaction {

	@ManyToOne
	@JoinColumn(name = "PengobatanKhususFk")
	@NotNull(message = "Pengobatan Khusus tidak boleh kosong")
	private PengobatanKhususSignIn pengobatanKhusus;
	
	@Column(name = "PengobatanKhususFk", insertable=false,updatable=false)
	private Integer pengobatanKhususId;
	
	
	@Column(name = "value", nullable = true)
	private String value;

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@ManyToOne
	@JoinColumn(name = "SignInOperationFk")
	@NotNull(message = "SignIn tidak boleh kosong")
	private SignInOperation signInOperation;
	
	@Column(name = "SignInOperationFk", insertable=false,updatable=false)
	private String signInOperationId;
	
	public PengobatanKhususSignIn getPengobatanKhusus() {
		return pengobatanKhusus;
	}

	public void setPengobatanKhusus(PengobatanKhususSignIn pengobatanKhusus) {
		this.pengobatanKhusus = pengobatanKhusus;
	}

	public SignInOperation getSignIn() {
		return signInOperation;
	}

	public void setSignIn(SignInOperation signInOperation) {
		this.signInOperation = signInOperation;
	}	
	
	
	
}