OrderDAO orderDAO = daoFactory.getOrderDAO();
FormDAO formDAO = daoFactory.getFormDAO();
CustomerDAO customerDAO = daoFactory.getCustomerDAO();
RoomDAO roomDAO = daoFactory.getRoomDAO();
CreditCardDAO creditCardDAO = daoFactory.getCreditCardDAO();
List<Order> orderList = null;
orderList = orderDAO.list();
Customer customer = null;
CreditCard creditCard = null;
Form form = null;
Room room = null;
for (Order order : orderList) {
customer = customerDAO.find(order.getCustomerId());
creditCard = creditCardDAO.find(customer.getCreditCardNumber());
Long orderRoomId = order.getRoomId();
Long formId = order.getFormId();
form = formDAO.find(formId);
room = roomDAO.find(orderRoomId);