src/main/java/com/qa/IMS/controller/OrderController.java
@Override
	public List<Order> readAll() {
		List<Order> orders = orderDAO.readAll();
		for (Order order : orders) {
			LOGGER.info(order.toString());
			LOGGER.info("**** This customer has ordered the following items ****");
			List<Order> ordersItems = orderDAO.readAllitems(order.getOrder_id());
			for(Order ordersitems : ordersItems) {
				LOGGER.info(ordersitems.toStringLong());
				
			}
			LOGGER.info("**********************");
			
		}
		return orders;
	}
/**
	 * Reads all orders to the logger
	 */
Reads all orders to the logger
Reads all orders to the logger
@Override
	public List<Order> readAll() {
		List<Order> orders = orderDAO.readAll();
		for (Order order : orders) {
			LOGGER.info(order.toString());
			LOGGER.info("**** This customer has ordered the following items ****");
			List<Order> ordersItems = orderDAO.readAllitems(order.getOrder_id());
			for(Order ordersitems : ordersItems) {
				LOGGER.info(ordersitems.toStringLong());
			}
			LOGGER.info("**********************");
		}
		return orders;
	}
@ Override public List < Order > readAll ( ) { List < Order > orders = orderDAO . readAll ( ) ; for ( Order order : orders ) { LOGGER . info ( order . toString ( ) ) ; LOGGER . info ( "**** This customer has ordered the following items ****" ) ; List < Order > ordersItems = orderDAO . readAllitems ( order . getOrder_id ( ) ) ; for ( Order ordersitems : ordersItems ) { LOGGER . info ( ordersitems . toStringLong ( ) ) ; } LOGGER . info ( "**********************" ) ; } return orders ; }
Reads all orders to the logger
Reads all orders to the logger