Coroutine repository interfaces mirror Reactive…Repository interfaces as they adopt reactive functionality and expose it as Kotlin Coroutines.
Spring Data R2DBC does not implement ReactiveSortingRepository, therefore R2DBC Coroutine repositories must make use of CoroutineCrudRepository and cannot use CoroutineSortingRepository.
duke9509 opened DATACMNS-1769 and commented
Attempting to create a repository that extends
CoroutineSortingRepository
results in the following exception being thrown on bean instantiation:It appears that the
findAll(sort)
method added byCoroutineSortingRepository
is getting parsed as a query for some reason.The attached reproduction project is using Spring Boot 2.4.0-M1, but the same code also reproduces the issue on 2.3.1.RELEASE and 2.3.2.BUILD-SNAPSHOT
Affects: 2.3.1 (Neumann SR1), 2.4 M1 (2020.0.0), 2.3.2 (Neumann SR2)
Attachments:
The text was updated successfully, but these errors were encountered: