Letractively / ateam-webstore

Automatically exported from code.google.com/p/ateam-webstore
0 stars 0 forks source link

Need Collection<ItemsOrdered> for Orders #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Either a getItemsOrdered() method on Orders or getItemsForOrder(Long orderId) 
on ItemsOrderedService would work.

Original issue reported on code.google.com by B.J.D...@gmail.com on 4 Dec 2011 at 7:39

GoogleCodeExporter commented 9 years ago
done!... checkout the code below

        Collection<Orders> orders = new OrdersService().getAll();
        for (Orders order : orders) {
            Collection<ItemsOrdered> items = order.getItemsOrdered();
            for (ItemsOrdered item : items) {
                System.out.println(item.getItemQty() + " - " + item.getUnitPrice());
            }
        }

Original comment by htava...@gmail.com on 4 Dec 2011 at 11:50

GoogleCodeExporter commented 9 years ago

Original comment by htava...@gmail.com on 4 Dec 2011 at 11:52

GoogleCodeExporter commented 9 years ago
Works.

Original comment by B.J.D...@gmail.com on 4 Dec 2011 at 11:55