bob
11/30/2023, 10:45 AMsuspend
on the controllers and let micronaut handle most of the wiring.
But my team has made me aware of a potential issue that using coroutines and @Transactional
doesn't work straight out of the box. And I can't find a resolute documentation on any limitations or caveats on it.
Does anyone have a good answer/documentation on the subject?Luiz H. Rapatão
11/30/2023, 10:09 PMbob
12/05/2023, 7:00 AMCrudRepository
and coroutines. That we had to change all our repositories to CoroutineCrudRepository
and that was a bigger job than they wanted at the time, so now they "learned" to not use suspend because it might be a problem instead.
Do you know if there's any documentation on the subject?bob
12/05/2023, 8:08 AMJpaSpecificationExecutor
that needs to be a CoroutineJpaSpecificationExecutor
.
I'll try to refactor our code in a few weeks.Luiz H. Rapatão
12/05/2023, 11:47 AMCoroutineCrudRepository
on the repository.
I took a look at the doc, and found a reference here: https://micronaut-projects.github.io/micronaut-data/latest/guide/#otherRepositoryVariations