Update Javadoc regarding sort order in RepositoryItemReader

Issue #4462
This commit is contained in:
Faraz
2023-10-09 23:31:35 +02:00
committed by Mahmoud Ben Hassine
parent b020f41fc7
commit 89db774509
2 changed files with 7 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -117,7 +117,9 @@ public class RepositoryItemReader<T> extends AbstractItemCountingItemStreamItemR
}
/**
* Provides ordering of the results so that order is maintained between paged queries
* Provides ordering of the results so that order is maintained between paged queries.
* Use a {@link java.util.LinkedHashMap} in case of multiple sort entries to keep the
* order.
* @param sorts the fields to sort by and the directions
*/
public void setSort(Map<String, Sort.Direction> sorts) {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2017-2023 the original author or authors.
* Copyright 2017-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -130,6 +130,8 @@ public class RepositoryItemReaderBuilder<T> {
/**
* Provides ordering of the results so that order is maintained between paged queries.
* Use a {@link java.util.LinkedHashMap} in case of multiple sort entries to keep the
* order.
* @param sorts the fields to sort by and the directions.
* @return The current instance of the builder.
* @see RepositoryItemReader#setSort(Map)