eine category wird auf viele Items gemapped durch das Feld category in ShoppingListItem
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user