Fix double-sorting usung limit of FetchableFluentQueryBySpecification.

Closes #3600
Original pull request: #3601
This commit is contained in:
Bohao Jing
2024-09-02 14:56:30 +08:00
committed by Mark Paluch
parent e55de1a84a
commit acc56d6747

View File

@@ -98,7 +98,7 @@ class FetchableFluentQueryBySpecification<S, R> extends FluentQuerySupport<S, R>
Assert.isTrue(limit >= 0, "Limit must not be negative");
return new FetchableFluentQueryBySpecification<>(spec, entityType, resultType, this.sort.and(sort), limit,
return new FetchableFluentQueryBySpecification<>(spec, entityType, resultType, sort, limit,
properties, finder, scroll, countOperation, existsOperation, entityManager, projectionFactory);
}