예제 #1
0
 /**
  * Sets the Ingredient to be referenced in this instance
  *
  * @param ingredient the Recipe to reference in this RecipeIngredient.
  */
 public void setIngredient(RecipeBO ingredient) {
   _ingredient = ingredient;
   _model.setIngredient(ingredient.getModel());
 }
예제 #2
0
 /**
  * Sets the Recipe to be referenced in this instance
  *
  * @param recipe the Recipe to reference in this RecipeIngredient.
  */
 public void setRecipe(RecipeBO recipe) {
   _recipe = recipe;
   _model.setRecipe(recipe.getModel());
 }