Beispiel #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;
  }
Beispiel #2
0
 public void saveOrder(Order order) {
   orderTotal.saveOrder(order);
 }
Beispiel #3
0
 public void deleteOrderByID(Long id) {
   orderTotal.deleteOrderById(id);
 }