Đang mở hậu trường...
Chọn đáp án để xem tỉ lệ cộng đồng và giải thích. Câu hỏi được chọn tự động — mọi người cùng làm 1 câu mỗi ngày.
In a Spring Boot service, a junior developer writes a method `processAll()` (no annotation) that loops over a list of orders and calls `this.saveOrder(order)`, where `saveOrder` is a public method in the same class annotated with `@Transactional`. In testing, a failure inside `saveOrder` does not roll back the row that was already written. Given the app uses Spring's default proxy-based AOP, what is the most accurate explanation and fix?