diff --git a/simulator-spring-boot/src/main/java/org/citrusframework/simulator/repository/MessageRepository.java b/simulator-spring-boot/src/main/java/org/citrusframework/simulator/repository/MessageRepository.java index 6207957e4..f7491c4a2 100644 --- a/simulator-spring-boot/src/main/java/org/citrusframework/simulator/repository/MessageRepository.java +++ b/simulator-spring-boot/src/main/java/org/citrusframework/simulator/repository/MessageRepository.java @@ -53,7 +53,7 @@ default Page findAllWithEagerRelationships(Pageable pageable) { Optional findOneWithToOneRelationships(@Param("messageId") Long messageId); @Override - @EntityGraph(attributePaths = {"headers", "scenarioExecution"}) + @EntityGraph(attributePaths = {"headers", "scenarioExecution", "scenarioExecution.testResult"}) Page findAll(Specification spec, Pageable pageable); default List findAllForScenarioExecution(Long scenarioExecutionId, String citrusMessageId, Message.Direction direction) { @@ -63,6 +63,6 @@ default List findAllForScenarioExecution(Long scenarioExecutionId, Stri List findAllByScenarioExecutionExecutionIdEqualsAndCitrusMessageIdEqualsIgnoreCaseAndDirectionEquals(@Param("scenarioExecutionId") Long scenarioExecutionId, @Param("citrusMessageId") String citrusMessageId, @Param("direction") Integer direction); @Query("FROM Message WHERE messageId IN :messageIds") - @EntityGraph(attributePaths = {"headers", "scenarioExecution"}) + @EntityGraph(attributePaths = {"headers", "scenarioExecution", "scenarioExecution.testResult"}) Page findAllWhereMessageIdIn(@Param("messageIds") List messageIds, Pageable pageable); }