Grokking Spring Boot
0% completed
How @Transactional Works
These lines, among others, appeared in the log when Ana booked seat A12, with debug logging turned on for Spring's JPA transaction manager:
Creating new transaction with name [com.example.booking.bookings.BookingService.book]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT Opened new EntityManager [SessionImpl(1473237843<open>)] for JPA transaction Participating in existing transaction Initiating transaction commit Committing JPA transaction on EntityManager [SessionImpl(1473237843<open>)] Closing JPA EntityManager after transaction
The method BookingService
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%