/*
 ************************************************************************************
 * Copyright (C) 2001-2009 encuestame: system online surveys Copyright (C) 2009
 * encuestame Development Team.
 * Licensed under the Apache Software License version 2.0
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to  in writing,  software  distributed
 * under the License is distributed  on  an  "AS IS"  BASIS,  WITHOUT  WARRANTIES  OR
 * CONDITIONS OF ANY KIND, either  express  or  implied.  See  the  License  for  the
 * specific language governing permissions and limitations under the License.
 ************************************************************************************
 */
package org.encuestame.web.beans.survey;

import org.encuestame.web.beans.MasterBean;
/**
 * Unit Answers Bean.
 * @author Picado, Juan Carlos juan@encuestame.org
 * @since 01/06/2009 15:24:16
 * @version $Id$
 */
public class UnitAnswersBean extends MasterBean {

    public Integer id;
    public String answers;
    /**
     * @return the id
     */
    public Integer getId() {
        return id;
    }
    /**
     * @param id the id to set
     */
    public void setId(Integer id) {
        this.id = id;
    }
    /**
     * @return the answers
     */
    public String getAnswers() {
        return answers;
    }
    /**
     * @param answers the answers to set
     */
    public void setAnswers(String answers) {
        this.answers = answers;
    }



}

@@ -824,53 +824,8 @@
 %0D%0A%0D%0A
-import org.encuestame.web.beans.MasterBean;%0D%0A
 /**%0D
@@ -848,16 +848,20 @@
  Bean.%0D%0A
+ *%0D%0A
  * @auth
@@ -958,16 +958,18 @@
 $%0D%0A */%0D%0A
+%0D%0A
 public c
@@ -993,82 +993,231 @@
 ean 
-extends MasterBean %7B%0D%0A%0D%0A    public Integer id;%0D%0A    public String answers;
+%7B%0D%0A%0D%0A    /** Answer Id. **/%0D%0A    public Long answerId;%0D%0A%0D%0A    /** Answer. **/%0D%0A    public String answers;%0D%0A%0D%0A    /** Answer Hash. **/%0D%0A    public String answerHash;%0D%0A%0D%0A    /** Question Id. **/%0D%0A    public Long questionId;%0D%0A
 %0D%0A  
@@ -1242,17 +1242,23 @@
 urn the 
-i
+answerI
 d%0D%0A     
@@ -1276,19 +1276,22 @@
 lic 
-Integer get
+Long getAnswer
 Id()
@@ -1309,17 +1309,23 @@
  return 
-i
+answerI
 d;%0D%0A    
@@ -1319,32 +1319,34 @@
 swerId;%0D%0A    %7D%0D%0A
+%0D%0A
     /**%0D%0A     * 
@@ -1356,16 +1356,47 @@
 ram 
-id the i
+answerId%0D%0A     *            the answerI
 d to
@@ -1433,20 +1433,35 @@
  set
-Id(Integer i
+AnswerId(final Long answerI
 d) %7B
@@ -1479,14 +1479,26 @@
 his.
-id = i
+answerId = answerI
 d;%0D%0A
@@ -1496,32 +1496,34 @@
 swerId;%0D%0A    %7D%0D%0A
+%0D%0A
     /**%0D%0A     * 
@@ -1618,16 +1618,18 @@
 %0A    %7D%0D%0A
+%0D%0A
     /**%0D
@@ -1650,16 +1650,35 @@
  answers
+%0D%0A     *           
  the ans
@@ -1726,16 +1726,22 @@
 Answers(
+final 
 String a
@@ -1793,15 +1793,633 @@
    %7D%0D%0A%0D%0A
-%0D%0A
+    /**%0D%0A     * @return the answerHash%0D%0A     */%0D%0A    public String getAnswerHash() %7B%0D%0A        return answerHash;%0D%0A    %7D%0D%0A%0D%0A    /**%0D%0A     * @param answerHash%0D%0A     *            the answerHash to set%0D%0A     */%0D%0A    public void setAnswerHash(final String answerHash) %7B%0D%0A        this.answerHash = answerHash;%0D%0A    %7D%0D%0A%0D%0A    /**%0D%0A     * @return the questionId%0D%0A     */%0D%0A    public Long getQuestionId() %7B%0D%0A        return questionId;%0D%0A    %7D%0D%0A%0D%0A    /**%0D%0A     * @param questionId%0D%0A     *            the questionId to set%0D%0A     */%0D%0A    public void setQuestionId(final Long questionId) %7B%0D%0A        this.questionId = questionId;%0D%0A    %7D
 %0D%0A%7D%0D%0A

Create Answer Bean.