src/main/java/fr/insee/pogues/persistence/query/QuestionnairesServiceQueryPostgresqlImpl.java
public void updateQuestionnaire(String id, JSONObject questionnaire) throws Exception {
		String qString = "UPDATE pogues SET data=? WHERE id=?";
		PGobject q = new PGobject();
		q.setType("json");
		q.setValue(questionnaire.toJSONString());
		int r = jdbcTemplate.update(qString, q, id);
		if (0 == r) {
			throw new NonUniqueResultException("Entity already exists");
		}
	}
/**
	 * A method to update an existing questionnaire in database
	 * 
	 * @param id id of the questionnaire
	 * @param questionnaire the JSON description of the questionnaire
	 */
A method to update an existing questionnaire in database

@param id id of the questionnaire
@param questionnaire the JSON description of the questionnaire
A method to update an existing questionnaire in database @param id id of the questionnaire @param questionnaire the JSON description of the questionnaire
public void updateQuestionnaire(String id, JSONObject questionnaire) throws Exception {
		String qString = "UPDATE pogues SET data=? WHERE id=?";
		PGobject q = new PGobject();
		q.setType("json");
		q.setValue(questionnaire.toJSONString());
		int r = jdbcTemplate.update(qString, q, id);
		if (0 == r) {
			throw new NonUniqueResultException("Entity already exists");
		}
	}
public void updateQuestionnaire ( String id , JSONObject questionnaire ) throws Exception { String qString = "UPDATE pogues SET data=? WHERE id=?" ; PGobject q = new PGobject ( ) ; q . setType ( "json" ) ; q . setValue ( questionnaire . toJSONString ( ) ) ; int r = jdbcTemplate . update ( qString , q , id ) ; if ( 0 == r ) { throw new NonUniqueResultException ( "Entity already exists" ) ; } }
A method to update an existing questionnaire in database
A method to update an existing questionnaire in database