Package adios.model

Examples of adios.model.Tag


          String tag = request.getParameter("tag");
          try{
          Recipe r = (Recipe)request.getSession().getAttribute("recipe");

         
          Tag t =new Tag();
          t.setName(tag);
          t.setRecipeId(r.getRecipeId());
          tagService.addTag(t);
          request.getSession().setAttribute("recipe", r);
          }catch(Exception e){
            return "false";
          }
View Full Code Here


     * @param t
     * @return
     */
    @Transactional
  public boolean removeTag(Tag t){
      Tag tagDB = em.find(Tag.class, t.getTagId());
      em.remove(tagDB);
    return true;       
      }
View Full Code Here

TOP

Related Classes of adios.model.Tag

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.