Exemplo n.º 1
0
  public Iterable<Order> getAllOrders() {
    System.out.print("kkk");
    Iterable<Order> orders = orderTotal.findAll();

    //        for (Order order : orders){
    //            List<OrderProduct> orderProducts = order.getOrderProducts();
    //            for(OrderProduct orderProduct : orderProducts) {
    //                orderProduct.getProductColor().getColor();
    //                System.out.println(orderProduct.getProductColor().getColor().getName());
    //
    ////                System.out.println(orderProduct.getId());
    //            }
    //        }
    //        System.out.print(orders);
    return orders;
  }
Exemplo n.º 2
0
 public void saveOrder(Order order) {
   orderTotal.saveOrder(order);
 }
Exemplo n.º 3
0
 public void deleteOrderByID(Long id) {
   orderTotal.deleteOrderById(id);
 }