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

Documentation for Vavr's Try method to trigger transaction rollbacks #30108

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

edyda99
Copy link
Contributor

@edyda99 edyda99 commented Mar 12, 2023

Updated the Spring Framework documentation to include an example of using Vavr's Try monad to trigger transaction rollbacks when a @Transactional-annotated method returns a Failure. The modified documentation demonstrates how to use Try in a transactional method and how to check if an exception has been wrapped inside a Try.Failure instance. Additionally, a link to the official Vavr documentation was added to provide more information on the Try method.

Closes #29560

Updated the Spring Framework documentation to include an example of using Vavr's Try monad to trigger transaction rollbacks when a @Transactional-annotated method returns a Failure. The modified documentation demonstrates how to use Try in a transactional method and how to check if an exception has been wrapped inside a Try.Failure instance. Additionally, a link to the official Vavr documentation was added to provide more information on the Try method.
@edyda99 edyda99 changed the title feat: Add support for Vavr's Try monad to trigger transaction rollbacks feat: Add documentation for Vavr's Try monad to trigger transaction rollbacks Mar 12, 2023
@edyda99 edyda99 changed the title feat: Add documentation for Vavr's Try monad to trigger transaction rollbacks feat: Add documentation for Vavr's Try method to trigger transaction rollbacks Mar 12, 2023
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Mar 12, 2023
@jhoeller jhoeller changed the title feat: Add documentation for Vavr's Try method to trigger transaction rollbacks Documentation for Vavr's Try method to trigger transaction rollbacks Mar 21, 2023
@jhoeller jhoeller self-assigned this Mar 21, 2023
@jhoeller jhoeller added in: data Issues in data modules (jdbc, orm, oxm, tx) type: documentation A documentation task and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Mar 21, 2023
@jhoeller jhoeller added this to the 6.0.8 milestone Mar 21, 2023
@jhoeller jhoeller merged commit 50d01ce into spring-projects:main Mar 28, 2023
@SOHEELEE408
Copy link

@jhoeller The link to the official documentation is invalid. It would be nice to see it corrected to https://docs.vavr.io/#_try.

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) type: documentation A documentation task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document support of Vavr's Try to potentially roll back declarative transactions
4 participants