You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Followup: Handle new Sort.unsorted() sorting strategy
Spring-Data no longer passes in `null` if no sorting order is given by the caller but uses `Sort.unsorted()` which incorrectly causes an Exception.
This should also solve #99
Followup to 8c3e139
Also getting rid of some JDK9 deprecated warnings on the JDK classes - as those methods exist in JDK8 already.
Copy file name to clipboardExpand all lines: src/main/java/org/socialsignin/spring/data/dynamodb/repository/query/DynamoDBEntityWithHashAndRangeKeyCriteria.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -330,7 +330,7 @@ public boolean isApplicableForQuery() {
Copy file name to clipboardExpand all lines: src/main/java/org/socialsignin/spring/data/dynamodb/repository/query/DynamoDBEntityWithHashKeyOnlyCriteria.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ public boolean isApplicableForLoad() {
Copy file name to clipboardExpand all lines: src/main/java/org/socialsignin/spring/data/dynamodb/repository/support/DynamoDBHashAndRangeKeyExtractingEntityMetadataImpl.java
Copy file name to clipboardExpand all lines: src/main/java/org/socialsignin/spring/data/dynamodb/repository/support/SimpleDynamoDBPagingAndSortingRepository.java
+2-4
Original file line number
Diff line number
Diff line change
@@ -64,15 +64,13 @@ public SimpleDynamoDBPagingAndSortingRepository(DynamoDBEntityInformation<T, ID>
64
64
65
65
@Override
66
66
publicIterable<T> findAll(Sortsort) {
67
-
thrownewUnsupportedOperationException("Sorting not supported for find all scan operations");
67
+
returnthrowUnsupportedSortOperationException();
68
68
}
69
69
70
70
@Override
71
71
publicPage<T> findAll(Pageablepageable) {
72
72
73
-
if (pageable.getSort() != null) {
74
-
thrownewUnsupportedOperationException("Sorting not supported for find all scan operations");
0 commit comments