eine category wird auf viele Items gemapped durch das Feld category in ShoppingListItem

This commit is contained in:
Technoir committed 2026-10-05 21:50:33 +02:00
1 parent f5add6b590
commit afda716a66
1 file changed
+1 -1
@@ -18,7 +18,7 @@ public class ShoppingListCategory extends ShoppingElement{
@NotBlank
private String categoryName;
@OneToMany
@OneToMany(mappedBy = "category")
private List<ShoppingListItem> itemsInCategory;
@ManyToOne
@JoinColumn(name="list_id", nullable = false)