@@ -0,0 +1,1354 @@
+/*%0A * To change this template, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage uk.org.rbc1b.roms.controller.person;%0A%0Aimport java.util.List;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.transaction.annotation.Transactional;%0Aimport org.springframework.web.bind.annotation.PathVariable;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport uk.org.rbc1b.roms.db.Person;%0A%0A/**%0A * Control access to the underlying person data.%0A *%0A * @author oliver%0A */%0A@Controller%0A@RequestMapping(%22/persons%22)%0Apublic class PersonsController %7B%0A%0A    @Autowired%0A    private PersonDao personDao;%0A%0A    /**%0A     * Person search. Pass in a candidate, match this against the user%0A     * first/last name and return the person object in JSON format%0A     *%0A     * @param query person match lookup%0A     * @return model containing the list of qualifications%0A     */%0A    @RequestMapping(value = %22search%22, method = RequestMethod.GET, headers = %22Accept=application/json%22)%0A    //@PreAuthorize - not clear who will not be allowed to access%0A    @Transactional(readOnly = true)%0A    public List%3CPerson%3E handleList(@PathVariable String query) %7B%0A        return personDao.findPersons(query);%0A    %7D%0A%7D%0A

Create controller for person look up (for type ahead)