Package org.springframework.samples.petclinic.model

Examples of org.springframework.samples.petclinic.model.Vets


    @RequestMapping("/vets")
    public String showVetList(Map<String, Object> model) {
        // Here we are returning an object of type 'Vets' rather than a collection of Vet objects
        // so it is simpler for Object-Xml mapping
        Vets vets = new Vets();
        vets.getVetList().addAll(this.clinicService.findVets());
        model.put("vets", vets);
        return "vets/vetList";
    }
View Full Code Here


    @Override
    protected List<Entry> buildFeedEntries(Map<String, Object> model,
                                           HttpServletRequest request, HttpServletResponse response) throws Exception {

        Vets vets = (Vets) model.get("vets");
        List<Vet> vetList = vets.getVetList();
        List<Entry> entries = new ArrayList<Entry>(vetList.size());

        for (Vet vet : vetList) {
            Entry entry = new Entry();
            // see http://diveintomark.org/archives/2004/05/28/howto-atom-id#other
View Full Code Here

TOP

Related Classes of org.springframework.samples.petclinic.model.Vets

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.