java/webservice/src/main/java/be/bosa/dt/best/webservice/Repository.java
/**
	 * Find an address by ID
	 * 
	 * @param id full address id
	 * @param embed embed street, postal etc or not
	 * @return address or null
	 */
Find an address by ID

@param id full address id
@param embed embed street, postal etc or not
@return address or null
Find an address by ID @param id full address id @param embed embed street postal etc or not @return address or null
public Uni<Address> findAddressById(String id, boolean embed) {
		Tuple tuple = Tuple.of(NsConverter.addressEncode(id));
		SqlAddress qry = new SqlAddress(embed);
		qry.where("a.identifier =");
		return uni(
			pg.preparedQuery(qry.build()).execute(tuple)
		).transform(row -> row.hasNext() ? Address.from(row.next()) : null);
	}
public Uni < Address > findAddressById ( String id , boolean embed ) { Tuple tuple = Tuple . of ( NsConverter . addressEncode ( id ) ) ; SqlAddress qry = new SqlAddress ( embed ) ; qry . where ( "a.identifier =" ) ; return uni ( pg . preparedQuery ( qry . build ( ) ) . execute ( tuple ) ) . transform ( row -> row . hasNext ( ) ? Address . from ( row . next ( ) ) : null ) ; }
Find an address by ID
Find an address by ID