Implement a Spring Boot application that involves transferring money between two bank accounts, ensuring that the transaction is atomic and consistent. Also allow the user to specify the transaction isolation level for the transfer operation. The available isolation levels are:
- DEFAULT
- READ_UNCOMMITTED
- READ_COMMITTED
- REPEATABLE_READ
- SERIALIZABLE
Steps:
- Create a new Spring Boot project using Spring Initializr.
- Define BankAccountEntity.
- Implement the service class with transaction management.
- Set up the controller to handle the transfer request.
Refer the problem.md file for problem description.
-
FORK this repository in your Gitlab account
-
CLONE the forked repository, containing the boilerplate in your local machine
-
Complete the solution as per the instructions given in problem.md and the boilerplate code
-
Use the following command to update the index using the current content found in the working tree, to prepare the content staged for the next commit.
git add . -
Commit and Push the project to git
git commit -a -m "Initial commit | or place your comments according to your need"git push -u origin master -
Check on the git repo online, if the files have been pushed
-
Submit your solution on Hobbes
- Right click on the Assignment, select Run As -> JUnit Test to run the TestCases.