public class ChoiceanswerJpaController extends Object implements Serializable
| Constructor and Description |
|---|
ChoiceanswerJpaController(javax.persistence.EntityManagerFactory emf)
Instantiates a new choiceanswer jpa controller.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
findSurveyQuestionChoiceByIdSurveyAndNumberQuestion(int idSurvey,
int numberQuestion)
Find survey question choice by id survey and number question.
|
javax.persistence.EntityManager |
getEntityManager()
Gets the entity manager.
|
void |
insertMultipleChoice(Survey survey,
SurveyAnswerModel surveyAnswerModel)
Insert multiple choice.
|
public ChoiceanswerJpaController(javax.persistence.EntityManagerFactory emf)
emf - the emfpublic javax.persistence.EntityManager getEntityManager()
public List<String> findSurveyQuestionChoiceByIdSurveyAndNumberQuestion(int idSurvey, int numberQuestion)
idSurvey - the id surveynumberQuestion - the number questionpublic void insertMultipleChoice(Survey survey, SurveyAnswerModel surveyAnswerModel)
survey - the surveysurveyAnswerModel - the survey answer modelCopyright © 2018. All Rights Reserved.