Esempio n. 1
0
 /**
  * Finds all ingredients for a recipe.
  *
  * @param recipeId
  * @return
  */
 public static List<Ingredient> findForRecipe(Long recipeId) {
   return find.join("recipe").where().eq("recipe.id", recipeId).findList();
 }