Package net.sf.mp.demo.conference.domain.conference

Examples of net.sf.mp.demo.conference.domain.conference.Conference


    @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
    @Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class)
  @ResponseBody
    public String delete (@PathVariable ("id") Long id) {
        Conference conference = new Conference ();
        conference.setId(id);
        conferenceDao.deleteConference(conference);
    return "OK";
    }
View Full Code Here


        @RequestParam("startDate") Date startDate,
        @RequestParam("endDate") Date endDate,
        @RequestParam("addressId") Long addressId,
        HttpServletResponse servletResponse
        ) throws IOException {
        Conference _conference = new Conference (
           id,
           name,
           startDate,
           endDate,
           addressId);
View Full Code Here

       setId (id);
       //attributes
       setComment (comment);
       setFeedbackDate (feedbackDate);
       //parents
       this.conferenceId = new Conference();
       this.conferenceId.setId(conferenceId); //Conference Column [name=id; type=BIGINT] - local ConferenceFeedback Column [name=conference_id; type=BIGINT]
       this.conferenceMemberId = new ConferenceMember();
       this.conferenceMemberId.setId(conferenceMemberId); //ConferenceMember Column [name=id; type=BIGINT] - local ConferenceFeedback Column [name=conference_member_id; type=BIGINT]
    }
View Full Code Here

       setFirstName (firstName);
       setLastName (lastName);
       setEmail (email);
       setStatus (status);
       //parents
       this.conferenceId = new Conference();
       this.conferenceId.setId(conferenceId); //Conference Column [name=id; type=BIGINT] - local ConferenceMember Column [name=conference_id; type=BIGINT]
       this.addressId = new Address();
       this.addressId.setId(addressId); //Address Column [name=id; type=BIGINT] - local ConferenceMember Column [name=address_id; type=BIGINT]
    }
View Full Code Here

       setPrivilegeType (privilegeType);
       setStatus (status);
       //parents
       this.addressId = new Address();
       this.addressId.setId(addressId); //Address Column [name=id; type=BIGINT] - local Sponsor Column [name=address_id; type=BIGINT]
       this.conferenceId = new Conference();
       this.conferenceId.setId(conferenceId); //Conference Column [name=id; type=BIGINT] - local Sponsor Column [name=conference_id; type=BIGINT]
    }
View Full Code Here

//MP-MANAGED-UPDATABLE-BEGINNING-DISABLE @FIND_ALL-conference@
    @GET
    @Produces ({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) 
    public List<Conference> findAll () {
    List<Conference> r = new ArrayList<Conference>();
        List<Conference> l = conferenceDao.searchPrototypeConference(new Conference());
    for (Conference conference : l) {
      r.add(conference.flat());
    }
    return r;
    }
View Full Code Here

//MP-MANAGED-UPDATABLE-BEGINNING-DISABLE @FIND_BY_ID-conference@
    @GET
    @Path("{id}")
    @Produces ({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})   
    public Conference findById (@PathParam ("id") java.lang.Long id) {
        Conference _conference = new Conference ();
    _conference.setId(id);
    _conference = conferenceExtDao.getFirstConference(_conference);
    if (_conference!=null) return _conference.flat();
    return new Conference ();
    }
View Full Code Here

//MP-MANAGED-UPDATABLE-ENDING

    @DELETE
    @Path("{id}")
    public void delete (@PathParam ("id") Long id) {
        Conference conference = new Conference ();
        conference.setId(id);
        conferenceDao.deleteConference(conference);
    }
View Full Code Here

        @FormParam("startDate") Date startDate,
        @FormParam("endDate") Date endDate,
        @FormParam("addressId") Long addressId,
        @Context HttpServletResponse servletResponse
        ) throws IOException {
        Conference _conference = new Conference (
           id,
           name,
           startDate,
           endDate,
           addressId);
View Full Code Here

    }

    @PUT
    @Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
    public Conference save(JAXBElement<Conference> jaxbConference) {
        Conference conference = jaxbConference.getValue();
        if (conference.getId()!=null)
            return conferenceDao.updateConference(conference);
        return save(conference);
    }
View Full Code Here

TOP

Related Classes of net.sf.mp.demo.conference.domain.conference.Conference

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.