Skip to content

puppal1/transactionRollBackDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Spring Boot

Spring boot Jdbc

Spring Transaction (@Transactional ((propagation = Propagation.REQUIRES_NEW, isolation = Isolation.REPEATABLE_READ,rollbackFor =
SomeException.class)

DB: MySql

DB Script Location : https://github.com/puppal1/transactionRollBackDemo/blob/master/src/main/resources/scripts.sql

Runner Class: AppRunner

Transactional logic in ChangeAddressServiceImpl (Declarative transactional support)

Three transactions are initiatied: 2 DB 1 fake rest call ... Exception in any scenario reults in DB roll back

KeyHolder logic in AddressDaoImpl

About

transactionRollBackDemo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages