3 import javax.persistence.Entity;
4 import javax.persistence.Id;
7 public class Forecast {
9 private Integer forecastNumber;
10 private String forecast;
11 private Question question;
14 public Forecast(int n, String s, Question q) {
20 public Forecast(String s, Question q) {
25 public String getForecast() {
29 public void setForecast(String s) {
33 public Question getQuestion() {
37 public void setQuestion(Question q) {
41 public Integer getForecastNumber() {
42 return forecastNumber;
45 public void setForecastNumber(int n) {
49 public String toString(){
50 return forecastNumber + ";" + question.toString()+"; Forecast: "+forecast;