Implement order

  • Create models
    • Order
  • Create DAO
    • OrderDao
  • Create service
    • OrderService
      public interface OrderService {
          Order completeOrder(ShoppingCart shoppingCart);
          
          List<Order> getOrdersHistory(User user);
      }

Attention: you can have some problem with naming of the table. Let's use orders instead of order.

You can check yourself using this checklist