OrdersDAO repository = new OrdersDAO();
return repository.getOrdersInCompleted();
}
public Collection<Orders> getByCustomerId(Serializable id) {
OrdersDAO repository = new OrdersDAO();
Customer customer = new CustomerService().getById(id);
return repository.getByCustomer(customer);
}