fixed merge bug: cascade = CascadeType.ALL in Article to Categories

This commit is contained in:
Hendrik Schutter 2020-05-15 19:31:31 +02:00
parent c73435b2a0
commit 8c777ca1ff
1 changed files with 1 additions and 1 deletions

View File

@ -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<Category> categories = new HashSet<>();