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 = "SignOutDetail_T")
public class SignOutDetail extends BaseTransaction {
	/**
	 * @author Shakato
	 */
	
	@ManyToOne
	@JoinColumn(name = "ObjectKonfirmasiSignInFk")
	@Caption(value = "ID KonfirmasiSignIn")
	//@NotNull(message = "ID HasilTriase tidak boleh kosong")
	private KonfirmasiSignIn konfirmasiSignIn;
	
	@Column(name = "ObjectKonfirmasiSignInFk", insertable = false, updatable = false, nullable = true)
	private Integer konfirmasiSignInId;
	
	@ManyToOne
	@JoinColumn(name = "ObjectSignInOperationFk")
	@Caption(value = "ID SignInOperation")
	//@NotNull(message = "ID HasilTriase tidak boleh kosong")
	private SignInOperation signInOperation;
	
	@Column(name = "ObjectSignInOperationFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = true)
	private String signInOperationId;

	public KonfirmasiSignIn getKonfirmasiSignIn() {
		return konfirmasiSignIn;
	}

	public void setKonfirmasiSignIn(KonfirmasiSignIn konfirmasiSignIn) {
		this.konfirmasiSignIn = konfirmasiSignIn;
	}

	public Integer getKonfirmasiSignInId() {
		return konfirmasiSignInId;
	}

	public void setKonfirmasiSignInId(Integer konfirmasiSignInId) {
		this.konfirmasiSignInId = konfirmasiSignInId;
	}

	public SignInOperation getSignInOperation() {
		return signInOperation;
	}

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

	public String getSignInOperationId() {
		return signInOperationId;
	}

	public void setSignInOperationId(String signInOperationId) {
		this.signInOperationId = signInOperationId;
	}
	
}