Alex Rader opened SPR-16664 and commented
Please add a transaction function/wrapper, something like https://github.com/ewolff/scala-spring/blob/master/src/main/scala/de/adesso/scalaspring/tx/TransactionManagement.scala
It will be more consistent in Kotlin.
transactional {
// do stuff in transaction
}
No further details from SPR-16664
Comment From: spring-projects-issues
Sébastien Deleuze commented
Could you detail what are your needs behind this request? Is it mainly a matter of programming style (annotation versus functional)? A way to do define more fine grained transactions?
Comment From: spring-projects-issues
Alex Rader commented
Yes it is more a matter of programming style, and we can make a transaction inside a function, so no need to create a separate method and annotate it with @Transactional
Comment From: spring-projects-issues
Sébastien Deleuze commented
I am going to experiment on that on Spring Fu side for now.
Comment From: bclozel
Superseded by #22915