Skip to content

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

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

Closed
spring-projects-issues opened this issue Mar 29, 2018 · 4 comments
Closed

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

spring-projects-issues opened this issue Mar 29, 2018 · 4 comments
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) status: superseded An issue that has been superseded by another type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link
Collaborator

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-projects-issues
Copy link
Collaborator Author

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-projects-issues
Copy link
Collaborator Author

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-projects-issues
Copy link
Collaborator Author

Sébastien Deleuze commented

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

@spring-projects-issues spring-projects-issues added status: waiting-for-triage An issue we've not yet triaged or decided on in: data Issues in data modules (jdbc, orm, oxm, tx) type: enhancement A general enhancement and removed type: enhancement A general enhancement labels Jan 11, 2019
@bclozel
Copy link
Member

bclozel commented Feb 18, 2022

Superseded by #22915

@bclozel bclozel closed this as completed Feb 18, 2022
@bclozel bclozel added status: superseded An issue that has been superseded by another type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) status: superseded An issue that has been superseded by another type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants