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;
|
package commons;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||||
import jakarta.persistence.Entity;
|
import jakarta.persistence.Entity;
|
||||||
|
|
@ -92,6 +93,8 @@ public abstract class RecipeIngredient {
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(id, ingredient);
|
return Objects.hash(id, ingredient);
|
||||||
}
|
}
|
||||||
|
@JsonIgnore
|
||||||
public abstract double getKcal();
|
public abstract double getKcal();
|
||||||
|
@JsonIgnore
|
||||||
public abstract double getBaseAmount();
|
public abstract double getBaseAmount();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue