public List<Ingredient> ingredients(TenantID tenant, String id) {
return sqlFactory.newSelect(tenant, i)
.select(i.dtype,
new PIngredient(i.id, i.name, i.description, i.category),
new PAlternative(i.id, i.name, i.description, i.category, i.quantity, i.options))
.where(i.productId.eq(id))
.orderBy(i.category.asc(), i.name.asc())
.fetch()
.stream()
.map(tuple -> findIngredient(tuple))
.collect(Collectors.toList());
}