Package com.artezio.testapp.domain

Examples of com.artezio.testapp.domain.City


 
  @RequestMapping(value = "city/new")
  public String shoNewCity(Model model){
    logger.debug("Request for adding city");
   
    model.addAttribute("city", new City());
    return "edit-city";
  }
View Full Code Here


 
  @RequestMapping(value = "city/edit/{cityId}")
  public String shoEditCity(@PathVariable(value = "cityId") Integer cityId, Model model){
    logger.debug("Request for editing city");
   
    City city = cityService.getCity(cityId);
   
    model.addAttribute("city", city);
   
    return "edit-city";
  }
View Full Code Here

    return sessionFactory.getCurrentSession().createCriteria(City.class)
        .list();
  }

  public void removeCity(Integer id) {
    City city = (City) sessionFactory.getCurrentSession().load(City.class,
        id);
    if (null != city) {
      sessionFactory.getCurrentSession().delete(city);
    }
View Full Code Here

TOP

Related Classes of com.artezio.testapp.domain.City

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.