@@ -0,0 +1,1652 @@
+package pl.mycalories.model;%0D%0A%0D%0Aimport javax.persistence.Embeddable;%0D%0Aimport javax.validation.constraints.NotNull;%0D%0A%0D%0A@Embeddable%0D%0Apublic class NutritionalValues %7B%0D%0A%0D%0A    @NotNull%0D%0A    private int calories;%0D%0A%0D%0A    @NotNull%0D%0A    private int proteins;%0D%0A%0D%0A    @NotNull%0D%0A    private int fats;%0D%0A%0D%0A    @NotNull%0D%0A    private int carbs;%0D%0A%0D%0A    public int getCalories() %7B%0D%0A        return calories;%0D%0A    %7D%0D%0A%0D%0A    public void setCalories(int calories) %7B%0D%0A        this.calories = calories;%0D%0A    %7D%0D%0A%0D%0A    public int getProteins() %7B%0D%0A        return proteins;%0D%0A    %7D%0D%0A%0D%0A    public void setProteins(int proteins) %7B%0D%0A        this.proteins = proteins;%0D%0A    %7D%0D%0A%0D%0A    public int getFats() %7B%0D%0A        return fats;%0D%0A    %7D%0D%0A%0D%0A    public void setFats(int fats) %7B%0D%0A        this.fats = fats;%0D%0A    %7D%0D%0A%0D%0A    public int getCarbs() %7B%0D%0A        return carbs;%0D%0A    %7D%0D%0A%0D%0A    public void setCarbs(int carbs) %7B%0D%0A        this.carbs = carbs;%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    public boolean equals(Object o) %7B%0D%0A        if (this == o) return true;%0D%0A        if (!(o instanceof NutritionalValues)) return false;%0D%0A        if (!super.equals(o)) return false;%0D%0A%0D%0A        NutritionalValues that = (NutritionalValues) o;%0D%0A%0D%0A        if (calories != that.calories) return false;%0D%0A        if (proteins != that.proteins) return false;%0D%0A        if (fats != that.fats) return false;%0D%0A        return carbs == that.carbs;%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    public int hashCode() %7B%0D%0A        int result = super.hashCode();%0D%0A        result = 31 * result + calories;%0D%0A        result = 31 * result + proteins;%0D%0A        result = 31 * result + fats;%0D%0A        result = 31 * result + carbs;%0D%0A        return result;%0D%0A    %7D%0D%0A%7D%0D%0A

add Nutritional values model