You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing the order create instruction, there are whole bunch of setters running there.
try to use a business-intention method to wrap up the creation detail, such as
Order purchased = Order.create(DTO);
rather than --->
Order purchaseOrder = new Order();
purchaseOrder.setDrinkHere(orderDTO.isDrinkHere());
purchaseOrder.setItemName(orderDTO.getItemName());
purchaseOrder.setPrice(orderDTO.getPrice());
purchaseOrder.setQuantity(orderDTO.getQuantity());
purchaseOrder.setSeatNo(orderDTO.getSeatNo());
The text was updated successfully, but these errors were encountered:
When doing the order create instruction, there are whole bunch of setters running there.
try to use a business-intention method to wrap up the creation detail, such as
Order purchased = Order.create(DTO);
rather than --->
Order purchaseOrder = new Order();
purchaseOrder.setDrinkHere(orderDTO.isDrinkHere());
purchaseOrder.setItemName(orderDTO.getItemName());
purchaseOrder.setPrice(orderDTO.getPrice());
purchaseOrder.setQuantity(orderDTO.getQuantity());
purchaseOrder.setSeatNo(orderDTO.getSeatNo());
The text was updated successfully, but these errors were encountered: