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 a48a0b7bab
commit 13a84c0c53

View File

@@ -95,7 +95,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);
}