From 6c87aeb715d8c8a0e043fa7fceacd58a2e76e97b Mon Sep 17 00:00:00 2001 From: Johanah LEKEU Date: Thu, 31 Oct 2024 09:49:41 +0100 Subject: [PATCH] Add joinMap to criteriaBuilder --- .../java/io/openbas/rest/scenario/ScenarioExerciseApi.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openbas-api/src/main/java/io/openbas/rest/scenario/ScenarioExerciseApi.java b/openbas-api/src/main/java/io/openbas/rest/scenario/ScenarioExerciseApi.java index 8f53f1ebb5..7c6b313912 100644 --- a/openbas-api/src/main/java/io/openbas/rest/scenario/ScenarioExerciseApi.java +++ b/openbas-api/src/main/java/io/openbas/rest/scenario/ScenarioExerciseApi.java @@ -14,8 +14,10 @@ import jakarta.persistence.criteria.Join; import jakarta.validation.Valid; import jakarta.validation.constraints.NotBlank; + import java.util.HashMap; import java.util.Map; + import lombok.RequiredArgsConstructor; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.domain.Specification; @@ -55,6 +57,7 @@ public Iterable scenarioExercises( pageable, joinMap), searchPaginationInput, - Exercise.class); + Exercise.class, + joinMap); } }