package com.jasamedika.medifirst2000.entities;

import java.io.Serializable;import org.hibernate.envers.Audited;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.*;

import org.hibernate.validator.constraints.NotEmpty;

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import javax.validation.constraints.NotNull;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.internal.util.logging.Messages;

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

/**
 *  class PasienDaftar
 * 
 * @author Generator
 */
@Entity //@Audited
@Table(name = "ResultSurveiDetail_T")

@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class ResultSurveiDetail extends BaseTransaction {

	public ResultSurvei getResultSurvei() {
		return ResultSurvei;
	}

	public void setResultSurvei(ResultSurvei resultSurvei) {
		ResultSurvei = resultSurvei;
	}

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "SurveiDetail")
	@Caption(value="SurveiDetail")	
	private SurveiDetail surveiDetail;
	
	public SurveiDetail getSurveiDetail() {
		return surveiDetail;
	}

	public void setSurveiDetail(SurveiDetail surveiDetail) {
		this.surveiDetail = surveiDetail;
	}

	@Column(name = "SurveiDetail", insertable=false,updatable=false, nullable=true)
	private Integer surveiDetailId;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "ResultSurvei")
	@Caption(value="ResultSurvei")
	@JsonBackReference
	private ResultSurvei ResultSurvei;
	
	@Column(name = "ResultSurvei", insertable=false,updatable=false, nullable=true)
	private String resultSurveiId;
	
	
	
}

