fix: got it

This commit is contained in:
Zhongheng Liu 2026-01-21 16:12:00 +01:00
commit 47d8aa7721
Signed by: steven
GPG key ID: F69B980899C1C09D

View file

@ -1,5 +1,6 @@
package commons;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import jakarta.persistence.Entity;
@ -92,6 +93,8 @@ public abstract class RecipeIngredient {
public int hashCode() {
return Objects.hash(id, ingredient);
}
@JsonIgnore
public abstract double getKcal();
@JsonIgnore
public abstract double getBaseAmount();
}