-
Notifications
You must be signed in to change notification settings - Fork 132
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
Sort sort in ReactiveSortingRepository not working in @Query #426
Comments
Using |
If this is the case,I should remove the @query annotation. "Failed to create query for method public abstract reactor.core.publisher.Flux org.springframework.data.repository.reactive.ReactiveSortingRepository.findAll(org.springframework.data.domain.Sort)! No property findAll found for type" org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'roomController' Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'roomRepository' defined in @EnableR2dbcRepositories declared on R2dbcRepositoriesAutoConfigureRegistrar.EnableR2dbcRepositoriesConfiguration: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract reactor.core.publisher.Flux org.springframework.data.repository.reactive.ReactiveSortingRepository.findAll(org.springframework.data.domain.Sort)! No property findAll found for type Room! even I did not override the find all method. And make the service shut down. The interface force me to override the method. My model class has the following annotation: and the config class : and my interface for the ReactiveSortingRepository @repository } Thanks |
Sort support was introduced with a recent change, see #407. |
|
Am I doing something wrong with my code below?
I always got the same result 'asc order' no matter how I change the instance of parameter of fallAll method.
if I remove the statement "@query(value="select r.id from room r")", I got an error " RoomRepository.findAll(org.springframework.data.domain.Sort)! No property findAll found for type Room! " on sever start up
@repository
public interface RoomRepository extends ReactiveSortingRepository<Room, Integer> {
}
@RestController
@RequestMapping("/room")
public class RoomController {
}
The text was updated successfully, but these errors were encountered: