https://github.com/hstreb/spring-transactional
Example how to use spring transaction
https://github.com/hstreb/spring-transactional
java-8 spring spring-boot transaction
Last synced: about 2 months ago
JSON representation
Example how to use spring transaction
- Host: GitHub
- URL: https://github.com/hstreb/spring-transactional
- Owner: hstreb
- Created: 2017-03-28T21:16:39.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-29T14:26:42.000Z (about 9 years ago)
- Last Synced: 2025-03-06T03:36:01.240Z (over 1 year ago)
- Topics: java-8, spring, spring-boot, transaction
- Language: Java
- Homepage:
- Size: 138 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# test spring transaction
How to configure spring transaction with [annotation](01-transactional), with [bean](02-transactional) and an [example with problem](03-transactional).
# run
Go each of folders and execute:
```sh
./gradlew bootRun
```
Sorry for not use test yet, the correct output expected is something like that:
```sh
...
people count: 3
Person{id=1, name='Mary', addresses=[Address{street='1st Street', number=10, addOn=Optional.empty}], phones=[Phone{number='432'}], emails=[]}
Person{id=3, name='Peter', addresses=[Address{street='5th Avenue', number=5, addOn=Optional[house 3]}], phones=[], emails=[]}
Person{id=5, name='Bruce', addresses=[Address{street='1st Avenue', number=30, addOn=Optional.empty}], phones=[Phone{number='1232'}], emails=[Phone{email='bruce@email.com'}]}
Started App in 2.63 seconds (JVM running for 3.142)
...
```