MindIQ Academy
1 / 100
Spring Transactions

Question 1

In a Spring Boot 3 application, which statement best describes what happens when a public service method annotated with @Transactional is invoked from a Spring-managed bean through its proxy?

@Service
class OrderService {
    @Transactional
    public void placeOrder(Order order) {
        orderRepository.save(order);
        paymentRepository.save(new Payment(order));
    }
}