From 8c777ca1ff0f669e356052c93a3d1b106026720b Mon Sep 17 00:00:00 2001 From: localhorst Date: Fri, 15 May 2020 19:31:31 +0200 Subject: [PATCH] fixed merge bug: cascade = CascadeType.ALL in Article to Categories --- .../src/main/java/org/hso/ecommerce/entities/shop/Article.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prototype/src/main/java/org/hso/ecommerce/entities/shop/Article.java b/prototype/src/main/java/org/hso/ecommerce/entities/shop/Article.java index 3ecc489..355b5f9 100644 --- a/prototype/src/main/java/org/hso/ecommerce/entities/shop/Article.java +++ b/prototype/src/main/java/org/hso/ecommerce/entities/shop/Article.java @@ -35,7 +35,7 @@ public class Article { @Basic(fetch = FetchType.LAZY) public Image image; - @ManyToMany + @ManyToMany(cascade = CascadeType.ALL) @JoinTable(name = "article_categories_bindings") public Set categories = new HashSet<>();