package isrp.hibernate.model.businessobject;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

// Generated 2009-10-11 21:28:51 by Hibernate Tools 3.2.5.Beta

/**
 * Question generated by hbm2java
 */
public class Question implements java.io.Serializable {
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String question;
	@SuppressWarnings("unchecked")
	private Set answers;
	// private Set selectedAnswers;
	// for review details page
	private List<Answer> selectedAnswersList;

	// public Set getSelectedAnswers() {
	// return selectedAnswers;
	// }
	//
	// public void setSelectedAnswers(Set selectedAnswers) {
	// this.selectedAnswers = selectedAnswers;
	// }

	@SuppressWarnings("unchecked")
	public Set getAnswers() {
		return answers;
	}

	@SuppressWarnings("unchecked")
	public void setAnswers(Set answers) {
		this.answers = answers;
	}

	public Question() {
	}

	public Question(String question) {
		this.question = question;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getQuestion() {
		return this.question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public List<Answer> getSelectedAnswersList() {
		if (selectedAnswersList == null) {
			selectedAnswersList = new ArrayList<Answer>();
		}
		return selectedAnswersList;
	}

	public void setSelectedAnswersList(List<Answer> selectedAnswersList) {
		this.selectedAnswersList = selectedAnswersList;
	}

}
