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,
ccNum, ccExpireMonth, ccExpireYear, cardHolder, shippingMethod, orderitems);
//em.getTransaction().begin();