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

@Entity //@Audited
@Table(name = "SignInOperation_T")
public class SignInOperation extends MedicalRecordTransaction {
	/**
	 * @author Shakato
	 */
	@JsonBackReference
	@OneToMany(cascade=CascadeType.ALL,fetch = FetchType.LAZY, mappedBy = "signInOperation")
	private Set<SignInOperationDetailQuisioner> signInOperationDetailQuisioner=new HashSet<SignInOperationDetailQuisioner>();

	public Set<SignInOperationDetailQuisioner> getSignInOperationDetailQuisioner() {
		return signInOperationDetailQuisioner;
	}

	public void setSignInOperationDetailQuisioner(Set<SignInOperationDetailQuisioner> signInOperationDetailQuisioner) {
		this.signInOperationDetailQuisioner = signInOperationDetailQuisioner;
	}

	@JsonBackReference
	@OneToMany(cascade=CascadeType.ALL,fetch = FetchType.LAZY, mappedBy = "signInOperation")
	private Set<SignInOperationDetail> signInOperationDetail=new HashSet<SignInOperationDetail>();

	public Set<SignInOperationDetail> getSignInOperationDetail() {
		return signInOperationDetail;
	}

	public void setSignInOperationDetail(Set<SignInOperationDetail> signInOperationDetail) {
		this.signInOperationDetail = signInOperationDetail;
	}

}