@MappedEntity public class Food extends java.lang.Object
Constructor and Description |
---|
Food(@Size(max=36) @NotNull java.lang.String key,
@Size(max=9999) @NotNull int carbohydrates,
@Size(max=9999) @NotNull int portionGrams,
Meal meal) |
Food(java.util.UUID id,
@Size(max=36) @NotNull java.lang.String key,
@Size(max=9999) @NotNull int carbohydrates,
@Size(max=9999) @NotNull int portionGrams,
java.util.Date createdOn,
java.util.Date updatedOn,
Meal meal) |
Modifier and Type | Method and Description |
---|---|
int |
getCarbohydrates() |
java.util.Date |
getCreatedOn() |
java.util.UUID |
getId() |
java.lang.String |
getKey() |
Meal |
getMeal() |
int |
getPortionGrams() |
java.util.Date |
getUpdatedOn() |
void |
setCarbohydrates(int carbohydrates) |
void |
setCreatedOn(java.util.Date createdOn) |
void |
setId(java.util.UUID id) |
void |
setKey(java.lang.String key) |
void |
setMeal(Meal meal) |
void |
setPortionGrams(int portionGrams) |
void |
setUpdatedOn(java.util.Date updatedOn) |
public Food(@Size(max=36) @NotNull @Size(max=36) @NotNull java.lang.String key, @Size(max=9999) @NotNull @Size(max=9999) @NotNull int carbohydrates, @Size(max=9999) @NotNull @Size(max=9999) @NotNull int portionGrams, @Nullable Meal meal)
@Creator public Food(java.util.UUID id, @Size(max=36) @NotNull @Size(max=36) @NotNull java.lang.String key, @Size(max=9999) @NotNull @Size(max=9999) @NotNull int carbohydrates, @Size(max=9999) @NotNull @Size(max=9999) @NotNull int portionGrams, java.util.Date createdOn, java.util.Date updatedOn, @Nullable Meal meal)
public java.util.UUID getId()
public void setId(java.util.UUID id)
public java.lang.String getKey()
public void setKey(java.lang.String key)
public int getCarbohydrates()
public void setCarbohydrates(int carbohydrates)
public int getPortionGrams()
public void setPortionGrams(int portionGrams)
public java.util.Date getCreatedOn()
public void setCreatedOn(java.util.Date createdOn)
public java.util.Date getUpdatedOn()
public void setUpdatedOn(java.util.Date updatedOn)
public Meal getMeal()
public void setMeal(Meal meal)