Package com.secondstack.training.spring.extjs.domain

Examples of com.secondstack.training.spring.extjs.domain.Participant


    @RequestMapping(params = {"id"}, method = RequestMethod.GET)
    @ResponseBody
    public Participant findById(@RequestParam("id")Integer id){
        logger.debug("Received rest request to get data participant");
        Participant participant = participantService.findById(id);
        return participant;
    }
View Full Code Here


        entityManager.persist(participant);
    }

    @Override
    public Participant update(Integer id, Participant participant){
        Participant oldParticipant = findById(id);
//        oldParticipant.setLecture(participant.getLecture());
        oldParticipant.setStudent(participant.getStudent());
        oldParticipant.setValue(participant.getValue());
        return entityManager.merge(oldParticipant);
    }
View Full Code Here

TOP

Related Classes of com.secondstack.training.spring.extjs.domain.Participant

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.