From a35e642883922a763454193c1b55a43e10b65335 Mon Sep 17 00:00:00 2001 From: Maxime Perrault Date: Tue, 3 Sep 2024 10:06:15 +0200 Subject: [PATCH] perf: claire's review --- .../database/repositories/interfaces/IDBMissionRepository.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/main/kotlin/fr/gouv/cacem/monitorenv/infrastructure/database/repositories/interfaces/IDBMissionRepository.kt b/backend/src/main/kotlin/fr/gouv/cacem/monitorenv/infrastructure/database/repositories/interfaces/IDBMissionRepository.kt index 80b10524d..c8aaa2ece 100644 --- a/backend/src/main/kotlin/fr/gouv/cacem/monitorenv/infrastructure/database/repositories/interfaces/IDBMissionRepository.kt +++ b/backend/src/main/kotlin/fr/gouv/cacem/monitorenv/infrastructure/database/repositories/interfaces/IDBMissionRepository.kt @@ -109,7 +109,9 @@ interface IDBMissionRepository : JpaRepository { fun findNotDeletedByIds(ids: List): List @EntityGraph(value = "MissionModel.fullLoad", type = EntityGraph.EntityGraphType.LOAD) - @Query("SELECT mission FROM MissionModel mission JOIN mission.controlUnits missionControlUnitResources WHERE missionControlUnitResources.unit.id = :controlUnitId") + @Query( + "SELECT mission FROM MissionModel mission JOIN mission.controlUnits missionControlUnitResources WHERE missionControlUnitResources.unit.id = :controlUnitId", + ) fun findByControlUnitId(controlUnitId: Int): List @EntityGraph(value = "MissionModel.fullLoad", type = EntityGraph.EntityGraphType.LOAD)