Package com.freewebsys.blog.pojo

Examples of com.freewebsys.blog.pojo.Link


   */
  @Transactional
  public void deleteLinkById(Long id) throws Exception {
    log.info("deleteLinkById:" + id);
    try{
      Link link = (Link) baseDao.findById(Link.class, id);
      baseDao.delete(link);
    } catch (Exception e) {
      log.info("Link删除异常");
      e.printStackTrace();
    }
View Full Code Here


  public String addLink(HttpServletRequest request,
      HttpServletResponse response,
      @RequestParam(value = "id", required = false) Long id,
      ModelMap model) throws Exception {
    if (id != null) {
      Link link = linkService.findLinkById(id);
      model.addAttribute("linkAttribute", link);
    } else {
      model.addAttribute("linkAttribute", new Link());
    }
    return "/admin/link/linkForm";
  }
View Full Code Here

TOP

Related Classes of com.freewebsys.blog.pojo.Link

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.