ccNum, ccExpireMonth, ccExpireYear, cardHolder, shippingMethod, items);
*/
Collection<OrderItem> orderitems = new ArrayList<OrderItem>();
//EntityManager em = entityManagerFactory.createEntityManager();
for (Object o : items) {
ShoppingCartItem si = (ShoppingCartItem) o;
Inventory inv = em.find(Inventory.class, si.getID());
OrderItem oi = new OrderItem(inv);
oi.setQuantity(si.getQuantity());
orderitems.add(oi);
}
Customer c = em.find(Customer.class, customerID);
order = new Order(c, billName, billAddr1, billAddr2, billCity, billState, billZip, billPhone,
shipName, shipAddr1, shipAddr2, shipCity, shipState, shipZip, shipPhone, creditCard,