@MappedEntity public class Meal extends java.lang.Object
Constructor and Description |
---|
Meal(@NotNull @Size(max=999) int currentBloodGlucose) |
Meal(@NotNull @Max(value=999L) int currentBloodGlucose,
java.util.Date createdOn,
java.util.Date updatedOn) |
Meal(java.util.UUID id,
@NotNull @Max(value=999L) int currentBloodGlucose,
java.util.Date createdOn,
java.util.Date updatedOn,
java.util.Set<Food> foods) |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getCreatedOn() |
int |
getCurrentBloodGlucose() |
java.util.Set<Food> |
getFoods() |
java.util.UUID |
getId() |
java.util.Date |
getUpdatedOn() |
void |
setCreatedOn(java.util.Date createdOn) |
void |
setCurrentBloodGlucose(int currentBloodGlucose) |
void |
setFoods(java.util.Set<Food> foods) |
void |
setId(java.util.UUID id) |
void |
setUpdatedOn(java.util.Date updatedOn) |
public Meal(@NotNull @Max(value=999L) @NotNull @Max(value=999L) int currentBloodGlucose, java.util.Date createdOn, java.util.Date updatedOn)
@Creator public Meal(java.util.UUID id, @NotNull @Max(value=999L) @NotNull @Max(value=999L) int currentBloodGlucose, java.util.Date createdOn, java.util.Date updatedOn, @Nullable java.util.Set<Food> foods)
public Meal(@NotNull @Size(max=999) @NotNull @Size(max=999) int currentBloodGlucose)
public java.util.UUID getId()
public void setId(java.util.UUID id)
public int getCurrentBloodGlucose()
public void setCurrentBloodGlucose(int currentBloodGlucose)
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 java.util.Set<Food> getFoods()
public void setFoods(java.util.Set<Food> foods)