From e03a01ec89c7aa1c011b9b70ac8e3c6b3c7c9d79 Mon Sep 17 00:00:00 2001 From: Bartha Maxime <231026@umons.ac.be> Date: Mon, 18 Mar 2024 11:53:33 +0100 Subject: [PATCH] oups forgot somthing --- .../src/main/java/ovh/herisson/Clyde/Tables/UserCurriculum.java | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/main/java/ovh/herisson/Clyde/Tables/UserCurriculum.java b/backend/src/main/java/ovh/herisson/Clyde/Tables/UserCurriculum.java index bd04113..f42e588 100644 --- a/backend/src/main/java/ovh/herisson/Clyde/Tables/UserCurriculum.java +++ b/backend/src/main/java/ovh/herisson/Clyde/Tables/UserCurriculum.java @@ -18,6 +18,7 @@ public class UserCurriculum { @ManyToOne(fetch = FetchType.EAGER) @JoinColumn(name = "Curriculum") + @OnDelete(action = OnDeleteAction.CASCADE) private Curriculum curriculum; public UserCurriculum(User user, Curriculum curriculum){