From cb2436889b0a1334b2b568558d914bbd16f5f639 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sat, 6 Aug 2022 16:21:17 -0700 Subject: [PATCH] Fix bug cascade remove of label --- wise-webapp/src/main/java/com/wisemapping/model/Mindmap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wise-webapp/src/main/java/com/wisemapping/model/Mindmap.java b/wise-webapp/src/main/java/com/wisemapping/model/Mindmap.java index bf413899..5cf58ef6 100644 --- a/wise-webapp/src/main/java/com/wisemapping/model/Mindmap.java +++ b/wise-webapp/src/main/java/com/wisemapping/model/Mindmap.java @@ -66,7 +66,7 @@ public class Mindmap implements Serializable { @OneToMany(mappedBy = "mindMap", orphanRemoval = true, cascade = {CascadeType.ALL}) private Set collaborations = new HashSet<>(); - @ManyToMany(cascade = CascadeType.ALL) + @ManyToMany(cascade = {CascadeType.PERSIST, CascadeType.REFRESH, CascadeType.MERGE}) @JoinTable( name = "R_LABEL_MINDMAP", joinColumns = @JoinColumn(name = "mindmap_id"),