spring/app-spring-dbeater/src/main/java/org/cloudfoundry/s2qa/HomeController.java
@RequestMapping(value="/", method=RequestMethod.GET)
        public String home(Model model) {
        logger.info("Welcome home!");
        model.addAttribute("dbInfo", referenceRepository.getDbInfo());
        model.addAttribute("items", referenceRepository.findAllTables());
        return "home";
    }
/**
    * Prepares the Model with some metadata and the list of Items retrieved
    * from the DB. Then, selects the home view to render by returning its name.
    */
Prepares the Model with some metadata and the list of Items retrieved
from the DB. Then, selects the home view to render by returning its name.
Prepares the Model with some metadata and the list of Items retrieved from the DB . Then selects the home view to render by returning its name .
@RequestMapping(value="/", method=RequestMethod.GET)
        public String home(Model model) {
        logger.info("Welcome home!");
        model.addAttribute("dbInfo", referenceRepository.getDbInfo());
        model.addAttribute("items", referenceRepository.findAllTables());
        return "home";
    }
@ RequestMapping ( value = "/" , method = RequestMethod . GET ) public String home ( Model model ) { logger . info ( "Welcome home!" ) ; model . addAttribute ( "dbInfo" , referenceRepository . getDbInfo ( ) ) ; model . addAttribute ( "items" , referenceRepository . findAllTables ( ) ) ; return "home" ; }
Prepares the Model with some metadata and the list of Items retrieved
 from the DB.
Prepares the Model with some metadata and the list of Items retrieved from the DB .