Skip to content

feat: EXPOSED-188 Support Propagation in SpringTransactionManager#1867

Merged
bog-walk merged 10 commits intoJetBrains:mainfrom
FullOfOrange:fulloforange/spring-transaction-propagation
Sep 25, 2023
Merged

feat: EXPOSED-188 Support Propagation in SpringTransactionManager#1867
bog-walk merged 10 commits intoJetBrains:mainfrom
FullOfOrange:fulloforange/spring-transaction-propagation

Conversation

@FullOfOrange
Copy link
Contributor

Implemented the Propagation policy in SpringTransactionManager.

In addition to REQUIRED, we now support SUPPORTS, MANDATORY, REQUIRES_NEW, NOT_SUPPORTED, NEVER, and NESTED.

The changes are as follows

  • NESTED is implemented to use the ThreadLocalTransactionManager's savepoint. So Spring's SavePointManager is not implemented.
  • Implemented doSuspend and doResume methods for support, mandatory, etc. Saves the current transaction, changes the current TransactionManager to null, etc.

@FullOfOrange FullOfOrange changed the title feat: EXPOSED-188 Support propagation in SpringTransactionManager feat: EXPOSED-188 Support Propagation in SpringTransactionManager Sep 23, 2023
Copy link
Member

@bog-walk bog-walk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FullOfOrange Thanks for the great PR and the very thorough tests!

Just 2 minor technical changes requested.

@bog-walk bog-walk requested a review from e5l September 24, 2023 15:40
Copy link
Member

@e5l e5l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bog-walk bog-walk merged commit d3d254b into JetBrains:main Sep 25, 2023
saral pushed a commit to saral/Exposed that referenced this pull request Oct 3, 2023
…tBrains#1867)

* feat: add nested transaction feature

* test: add nested transaction test

* test: Add requires new and never test

* refactor: spring test refactoring

* refactor: spring test

* refactor: Refactoring spring transaction

* test: support and mandatory

* refactor: apply code review assert function

* docs: add test comments

* refactor: apply code review
@FullOfOrange FullOfOrange deleted the fulloforange/spring-transaction-propagation branch November 19, 2023 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants