ARTICLE AD BOX
Am I able to pass the entire User to map the payment Info? Is this a good practice, or is there a better way to do it.
public class User { private Long userID; private String name; //DOC later private UserType userType; private Payment payment; } public class Payment { private UUID paymentID; private User userID; private PaymentType paymentType; private Boolean isRefund; private double amount; }Also where should I store all the Users, Payments, Flights information, This is a LLD problem actually.
