fix: got it
This commit is contained in:
parent
3a0120dc33
commit
47d8aa7721
1 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue