/* (non-Javadoc) * @see it.geosolutions.fra2015.services.SurveyService#upsert(it.geosolutions.fra2015.server.model.survey.Question) */ @Override public void upsert(Question question) throws BadRequestServiceEx, NotFoundServiceEx { for (Entry entry : question.getEntries()) { entry.setQuestion(question); if (entry.getEntryItems() != null) { for (EntryItem entryItems : entry.getEntryItems()) { entryItems.setEntry(entry); } } } questionDAO.persist(question); }