Fix Deleting Taskgroup when Taskgroup has parent
This commit is contained in:
parent
1133d2123c
commit
583cb0aca0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user