java/webservice/src/main/java/be/bosa/dt/best/webservice/Repository.java
/**
	 * Find a municipality by ID
	 * 
	 * @param id municipality id
	 * @return municipality or null
	 */
Find a municipality by ID

@param id municipality id
@return municipality or null
Find a municipality by ID @param id municipality id @return municipality or null
public Uni<Municipality> findMunicipalityById(String id) {
		Tuple tuple = Tuple.of(NsConverter.municipalityEncode(id));
		SqlMunicipality qry = new SqlMunicipality();
		qry.where("m.identifier =");
		return uni(
			pg.preparedQuery(qry.build()).execute(tuple)
		).transform(row -> row.hasNext() ? Municipality.from(row.next()) : null);
	}
public Uni < Municipality > findMunicipalityById ( String id ) { Tuple tuple = Tuple . of ( NsConverter . municipalityEncode ( id ) ) ; SqlMunicipality qry = new SqlMunicipality ( ) ; qry . where ( "m.identifier =" ) ; return uni ( pg . preparedQuery ( qry . build ( ) ) . execute ( tuple ) ) . transform ( row -> row . hasNext ( ) ? Municipality . from ( row . next ( ) ) : null ) ; }
Find a municipality by ID
Find a municipality by ID