Examples of PresentationPlace


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

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

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

        @RequestParam("id") Long id,
        @RequestParam("location") String location,
        @RequestParam("numberOfSeats") Integer numberOfSeats,
        HttpServletResponse servletResponse
        ) throws IOException {
        PresentationPlace _presentationPlace = new PresentationPlace (
           id,
           location,
           numberOfSeats);
        return save(_presentationPlace);
   
View Full Code Here

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

       setAbstractName (abstractName);
       setTitle (title);
       setStatus (status);
       setProposalTime (proposalTime);
       //parents
       this.presentationPlaceId = new PresentationPlace();
       this.presentationPlaceId.setId(presentationPlaceId); //PresentationPlace Column [name=id; type=BIGINT] - local Presentation Column [name=presentation_place_id; type=BIGINT]
    }
View Full Code Here

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

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

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

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

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

//MP-MANAGED-UPDATABLE-ENDING

    @DELETE
    @Path("{id}")
    public void delete (@PathParam ("id") Long id) {
        PresentationPlace presentationPlace = new PresentationPlace ();
        presentationPlace.setId(id);
        presentationPlaceDao.deletePresentationPlace(presentationPlace);
    }
View Full Code Here

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

        @FormParam("id") Long id,
        @FormParam("location") String location,
        @FormParam("numberOfSeats") Integer numberOfSeats,
        @Context HttpServletResponse servletResponse
        ) throws IOException {
        PresentationPlace _presentationPlace = new PresentationPlace (
           id,
           location,
           numberOfSeats);
        return save(_presentationPlace);
    }
View Full Code Here

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

    }

    @PUT
    @Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
    public PresentationPlace save(JAXBElement<PresentationPlace> jaxbPresentationPlace) {
        PresentationPlace presentationPlace = jaxbPresentationPlace.getValue();
        if (presentationPlace.getId()!=null)
            return presentationPlaceDao.updatePresentationPlace(presentationPlace);
        return save(presentationPlace);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.