Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
com.saga.demo.core.events.CancelPaymentEvent; import com.saga.demo.core.events.CompletePaymentEvent; import com.saga.demo.core.models.Payment; import com.saga.demo.payment.repository.PaymentRepository; @Component public class PaymentEventHandler { @Autowired private PaymentRepository repository;