Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
org.springframework.data.mongodb.core.mapping.Document; @Document(collection = "order") public class Order { @Id private String id; private String orderId; private String productId; private String userId; private String quantity; private String price; private String orderStatus; private String