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

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


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


        @RequestParam("street1") String street1,
        @RequestParam("street2") String street2,
        @RequestParam("countryId") Integer countryId,
        HttpServletResponse servletResponse
        ) throws IOException {
        Address _address = new Address (
           id,
           street1,
           street2,
           countryId);
        return save(_address);
View Full Code Here

       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

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

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

//MP-MANAGED-UPDATABLE-ENDING

    @DELETE
    @Path("{id}")
    public void delete (@PathParam ("id") Long id) {
        Address address = new Address ();
        address.setId(id);
        addressDao.deleteAddress(address);
    }
View Full Code Here

       //attributes
       setName (name);
       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

       //attributes
       setName (name);
       setStartDate (startDate);
       setEndDate (endDate);
       //parents
       this.addressId = new Address();
       this.addressId.setId(addressId); //Address Column [name=id; type=BIGINT] - local Conference Column [name=address_id; type=BIGINT]
    }
View Full Code Here

        @FormParam("street1") String street1,
        @FormParam("street2") String street2,
        @FormParam("countryId") Integer countryId,
        @Context HttpServletResponse servletResponse
        ) throws IOException {
        Address _address = new Address (
           id,
           street1,
           street2,
           countryId);
        return save(_address);
View Full Code Here

    }

    @PUT
    @Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
    public Address save(JAXBElement<Address> jaxbAddress) {
        Address address = jaxbAddress.getValue();
        if (address.getId()!=null)
            return addressDao.updateAddress(address);
        return save(address);
    }
View Full Code Here

TOP

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

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.