Skip to content

Commit

Permalink
Update Javadoc regarding sort order in RepositoryItemReader
Browse files Browse the repository at this point in the history
Issue #4462
  • Loading branch information
farazahmadk authored and fmbenhassine committed Apr 30, 2024
1 parent b020f41 commit 89db774
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -117,7 +117,9 @@ public void setArguments(List<?> arguments) {
}

/**
* 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) {
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -130,6 +130,8 @@ public RepositoryItemReaderBuilder<T> arguments(Object... arguments) {

/**
* 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)
Expand Down

0 comments on commit 89db774

Please sign in to comment.