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

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