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