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

Kotlin transaction function/wrapper [SPR-16664] #21205

Open
spring-issuemaster opened this issue Mar 29, 2018 · 3 comments
Open

Kotlin transaction function/wrapper [SPR-16664] #21205

spring-issuemaster opened this issue Mar 29, 2018 · 3 comments

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Mar 29, 2018

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

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Apr 3, 2018

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?

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Apr 6, 2018

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

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Dec 24, 2018

Sébastien Deleuze commented

I am going to experiment on that on Spring Fu side for now.

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
1 participant
You can’t perform that action at this time.