Skip to content
Snippets Groups Projects
Commit f41dc970 authored by Birk Øvstetun Narvhus's avatar Birk Øvstetun Narvhus
Browse files

hotfixed fridge product endpoint return values

parent 74430bac
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,8 @@ public class FridgeProductAsso {
@ManyToOne(fetch = FetchType.LAZY, cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH})
@JoinColumn(name = "ean")
@JsonIncludeProperties({"HibernateLazyInitializer", "handler", "name", "description", "price", "image", "allergies"})
@JsonIncludeProperties({"HibernateLazyInitializer", "handler", "ean", "name", "description", "category",
"url", "allergies", "bestBefore", "expirationDate", "unit", "amount"})
private Product ean;
@Column(name = "purchase_date")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment