// add this payment to the newOrder
newOrder.addPayment(payment);
// create a customerDAO
SalesOrderDAO orderDAO = new SalesOrderDAO();
// persist the changes
orderDAO.makePersistent(newOrder);
// commit this transaction
HibernateUtility.commitTransaction();
HibernateUtility.closeSession();