Skip to content

Commit 3356dc5

Browse files
use distinct
Signed-off-by: Mathieu DEHARBE <[email protected]>
1 parent 8df66ff commit 3356dc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/gridsuite/securityanalysis/server/service/SecurityAnalysisResultService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public Page<ContingencyEntity> findContingenciesPage(UUID resultUuid, List<Resou
290290
assertNmKContingenciesSortAllowed(pageable.getSort());
291291
Pageable modifiedPageable = addDefaultSortAndRemoveChildrenSorting(pageable, ContingencyEntity.Fields.uuid);
292292

293-
Specification<ContingencyEntity> specification = contingencySpecificationBuilder.buildSpecification(resultUuid, resourceFilters);
293+
Specification<ContingencyEntity> specification = contingencySpecificationBuilder.buildSpecification(resultUuid, resourceFilters, true);
294294
// WARN org.hibernate.hql.internal.ast.QueryTranslatorImpl -
295295
// HHH000104: firstResult/maxResults specified with collection fetch; applying in memory!
296296
// cf. https://vladmihalcea.com/fix-hibernate-hhh000104-entity-fetch-pagination-warning-message/
@@ -326,7 +326,7 @@ public Page<SubjectLimitViolationEntity> findSubjectLimitViolationsPage(UUID res
326326
Objects.requireNonNull(resultUuid);
327327
assertNmKSubjectLimitViolationsSortAllowed(pageable.getSort());
328328
Pageable modifiedPageable = addDefaultSortAndRemoveChildrenSorting(pageable, SubjectLimitViolationEntity.Fields.id);
329-
Specification<SubjectLimitViolationEntity> specification = subjectLimitViolationSpecificationBuilder.buildSpecification(resultUuid, resourceFilters);
329+
Specification<SubjectLimitViolationEntity> specification = subjectLimitViolationSpecificationBuilder.buildSpecification(resultUuid, resourceFilters, true);
330330
// WARN org.hibernate.hql.internal.ast.QueryTranslatorImpl -
331331
// HHH000104: firstResult/maxResults specified with collection fetch; applying in memory!
332332
// cf. https://vladmihalcea.com/fix-hibernate-hhh000104-entity-fetch-pagination-warning-message/

0 commit comments

Comments
 (0)