package com.jasamedika.medifirst2000.vo;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;

import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import com.jasamedika.medifirst2000.entities.MappingPertanyaanToKeterangan;
import com.jasamedika.medifirst2000.helper.Caption;

public class KeteranganSurveyVO extends BaseMasterVO{
	
	@Column(name = "Nomor", nullable = true )
	@Caption(value="Nomor")
	private Integer nomor;
	
	@Column(name = "Keterangan", nullable = true )
	@Caption(value="Keterangan")
	private String keterangan;
	
	@OneToMany(cascade=CascadeType.ALL,fetch = FetchType.LAZY, mappedBy = "keteranganSurvey")
	@Caption(value = "mappingSet")
	private Set<MappingPertanyaanToKeteranganVO> mappingSet=new HashSet<MappingPertanyaanToKeteranganVO>();
	
	public Integer getNomor() {
		return nomor;
	}

	public void setNomor(Integer nomor) {
		this.nomor = nomor;
	}

	public String getKeterangan() {
		return keterangan;
	}

	public void setKeterangan(String keterangan) {
		this.keterangan = keterangan;
	}

	public Set<MappingPertanyaanToKeteranganVO> getMappingSet() {
		return mappingSet;
	}

	public void setMappingSet(Set<MappingPertanyaanToKeteranganVO> mappingSet) {
		this.mappingSet = mappingSet;
	}
}
