Fix bug cascade remove of label

main
Paulo Gustavo Veiga 2022-08-06 16:21:17 -07:00
parent f7369e33dc
commit cb2436889b
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public class Mindmap implements Serializable {
@OneToMany(mappedBy = "mindMap", orphanRemoval = true, cascade = {CascadeType.ALL})
private Set<Collaboration> 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"),