Skip to content
Snippets Groups Projects
Commit e180641a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

remove file when project is removed

parent 5385640f
No related branches found
No related tags found
2 merge requests!836Resolve "Implement Spring Security",!613WIP: New Minerva Security Layer
......@@ -85,7 +85,7 @@ public class Project implements Serializable {
private List<Layout> layouts = new ArrayList<>();
@Cascade({ CascadeType.SAVE_UPDATE })
@OneToOne(fetch = FetchType.LAZY)
@OneToOne(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "file_entry_id")
private UploadedFileEntry inputData;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment