Skip to content
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

Add support for suspend repository query methods returning List<T> [DATACMNS-1802] #2216

Closed
spring-projects-issues opened this issue Sep 22, 2020 · 0 comments

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented Sep 22, 2020

Mark Paluch opened DATACMNS-1802 and commented

We should allow declaration of Kotlin Coroutine query methods returning List<T> as consuming a list using the imperative style is easier than from Flow.

Coroutine methods follow an imperative style such as suspend fun findAllByName(…) : List<Person> so we should apply the same detection mechanism whether a return type returns List on the repository level.

The actual repository method invocation must translate a Flux<T> into Mono<List<T>> to ensure emission of the correct result type


Issue Links:

  • DATAGEODE-374 Adopt to changes in Spring Data Commons
    ("is depended on by")
  • DATAJDBC-606 Adopt to changes in Spring Data Commons
    ("is depended on by")
  • DATAJPA-1782 Adopt to changes in Spring Data Commons
    ("is depended on by")
  • DATAKV-321 Adopt to changes in Spring Data Commons
    ("is depended on by")
  • DATACASS-806 Add support for suspend repository query methods returning List<T>
    ("is depended on by")
  • DATAMONGO-2630 Add support for suspend repository query methods returning List<T>
    ("is depended on by")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants