Class Food
java.lang.Object
io.micronaut.data.tck.entities.Food
-
Constructor Summary
ConstructorsConstructorDescriptionFood(@Size(max=36) @NotNull String key, @Max(9999L) @NotNull int carbohydrates, @Max(9999L) @NotNull int portionGrams, @Nullable Meal meal) Food(UUID fid, @Size(max=36) @NotNull String key, @Max(9999L) @NotNull int carbohydrates, @Max(9999L) @NotNull int portionGrams, Date createdOn, Date updatedOn, @Nullable Meal meal) -
Method Summary
Modifier and TypeMethodDescription@Nullable MealintgetFid()getKey()@Nullable StringgetMeal()intcharisFresh()voidsetAlternativeMeal(@Nullable Meal alternativeMeal) voidsetCarbohydrates(int carbohydrates) voidsetCreatedOn(Date createdOn) voidvoidsetFresh(char fresh) voidvoidsetLongName(@Nullable String value) voidvoidsetPortionGrams(int portionGrams) voidsetUpdatedOn(Date updatedOn)
-
Constructor Details
-
Food
-
Food
-
-
Method Details
-
getFid
-
setFid
-
getKey
-
setKey
-
getCarbohydrates
public int getCarbohydrates() -
setCarbohydrates
public void setCarbohydrates(int carbohydrates) -
getPortionGrams
public int getPortionGrams() -
setPortionGrams
public void setPortionGrams(int portionGrams) -
getCreatedOn
-
setCreatedOn
-
getUpdatedOn
-
setUpdatedOn
-
getMeal
-
setMeal
-
getAlternativeMeal
-
setAlternativeMeal
-
getLongName
-
setLongName
-
isFresh
public char isFresh() -
setFresh
public void setFresh(char fresh)
-