-
Notifications
You must be signed in to change notification settings - Fork 682
Decouple Paging and Sorting repositories from CrudRepository
#2540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/main/java/org/springframework/data/repository/support/DefaultRepositoryInvokerFactory.java
Show resolved
Hide resolved
src/main/java/org/springframework/data/repository/PagingAndSortingRepository.java
Show resolved
Hide resolved
This way they can be combined with different variants of CrudRepositories. This affects `PagingAndSortingRepository`, `ReactiveSortingRepository`, `CoroutineSortingRepository`, and `RxJavaSortingRepository`. Any repository implementing those interfaces now needs to also implement a suitable CRUD repository, or needs to manually add the methods from a CRUD repository as needed. Closes #2537
628e3e0
to
28ea8f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to update the documentation as well?
src/main/java/org/springframework/data/repository/PagingAndSortingRepository.java
Outdated
Show resolved
Hide resolved
src/main/java/org/springframework/data/repository/reactive/ReactiveSortingRepository.java
Outdated
Show resolved
Hide resolved
src/main/java/org/springframework/data/repository/reactive/RxJava3SortingRepository.java
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/springframework/data/repository/kotlin/CoroutineSortingRepository.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/springframework/data/repository/kotlin/CoroutineSortingRepository.kt
Outdated
Show resolved
Hide resolved
I made all the changes and updated the documentation. |
Thanks. I'll handle the merge tomorrow and follow up with modules that require changes. |
Thanks. Let me know so we can handle the follow up changes together. |
CrudRepository
This way they can be combined with different variants of CrudRepositories. This affects `PagingAndSortingRepository`, `ReactiveSortingRepository`, `CoroutineSortingRepository`, and `RxJavaSortingRepository`. Any repository implementing those interfaces now needs to also implement a suitable CRUD repository, or needs to manually add the methods from a CRUD repository as needed. Closes #2537 Original pull request: #2540.
That's merged and polished now. |
Closes #2537