issue-113: Fix all Delete Operations #114

Merged
sebastian merged 4 commits from issue-113 into master 2024-04-17 20:25:39 +02:00
Showing only changes of commit 583cb0aca0 - Show all commits

View File

@ -25,7 +25,7 @@ public class Taskgroup {
@JoinColumn(name = "taskgroupuser", nullable = false)
private User user;
@OneToMany(mappedBy = "parent", cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval = true)
@OneToMany(mappedBy = "parent", cascade = CascadeType.REMOVE, fetch = FetchType.EAGER, orphanRemoval = true)
private Set<Taskgroup> children;
@ManyToOne