package com.jasamedika.medifirst2000.vo;

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 com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;
import com.jasamedika.medifirst2000.entities.Pegawai;
import com.jasamedika.medifirst2000.entities.Survei;

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
 */

@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class ResultSurveiVO extends BaseTransactionVO {
	
	private String  groupNo;

	public String getGroupNo() {
		return groupNo;
	}

	public void setGroupNo(String groupNo) {
		this.groupNo = groupNo;
	}

	public PegawaiVO getPegawai() {
		return pegawai;
	}

	public void setPegawai(PegawaiVO pegawai) {
		this.pegawai = pegawai;
	}

	public Date getTglInput() {
		return tglInput;
	}

	public void setTglInput(Date tglInput) {
		this.tglInput = tglInput;
	}


	@ManyToOne
	@JoinColumn(name = "survei")
	@Caption(value="Survei")
	
	private SurveiVO survei;
	
	
	public SurveiDetailVO getAnswer() {
		return answer;
	}

	public void setAnswer(SurveiDetailVO answer) {
		this.answer = answer;
	}


	private SurveiDetailVO answer;
	public SurveiVO getSurvei() {
		return survei;
	}

	public void setSurvei(SurveiVO survei) {
		this.survei = survei;
	}


	@Column(name = "pegawai", insertable=false,updatable=false, nullable=true)
	private Integer surveiId;
	
	@ManyToOne
	@JoinColumn(name = "pegawai")
	@Caption(value="Pegawai")
	
	private PegawaiVO pegawai;
	
	@Column(name = "pegawai", insertable=false,updatable=false, nullable=true)
	private Integer pegawaiId;
	
	@Column(name = "tglInput", nullable = false)
	@Caption(value="Tgl Input")
	private Date  tglInput;
	
	
	
	
}

