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.BaseMasterVO;

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 SurveiVO extends BaseMasterVO {


	@JoinColumn(name = "SurveiHead")
	@Caption(value="Head Survei")	
	@OneToMany(cascade=CascadeType.ALL,fetch = FetchType.LAZY, mappedBy = "survei")
	private Set<SurveiDetailVO> surveis=new HashSet<SurveiDetailVO>();
	
	

	public Set<SurveiDetailVO> getSurveis() {
		return surveis;
	}

	public void setSurveis(Set<SurveiDetailVO> surveis) {
		this.surveis = surveis;
	}

	public String getGruop() {
		return gruop;
	}

	public void setGruop(String gruop) {
		this.gruop = gruop;
	}

	public String getDeskripsi() {
		return deskripsi;
	}

	public void setDeskripsi(String deskripsi) {
		this.deskripsi = deskripsi;
	}

	@Column(name = "SurveiHead", insertable=false,updatable=false, nullable=true)
	private Integer surveiId;
	

	@Column(name = "Group", nullable = false)
	@Caption(value="Group")
	private String  gruop;
	
	@Column(name = "Deskripsi", nullable = false)
	@Caption(value="Deskripsi")
	private String  deskripsi;
	
	
}

