Package Games.modeles

Examples of Games.modeles.Tag


      @PersistenceContext
    private EntityManager em;

      public Tag createTag (String tag){
           Tag t = null;

        Query q = em.createQuery("select COUNT(t) from Tag t where t.tagName=:tag");
        q.setParameter("tag", tag);
        int count = Integer.valueOf(q.getSingleResult().toString());

     if (count==0){
         System.out.println("création de tag");
        t = new Tag(tag);
        em.persist(t);
          }
        return t;
      }
View Full Code Here


       String forwardTo = "";
       String message = "";

       if (action!=null){
            if(action.equals("creeTag")){
            Tag t = gestionnaireTag.createTag(attribut);
            if (t!=null){
           forwardTo = "jspTest.jsp?action=todo";
           message = "Tag created";
                }else{
                forwardTo = "jspTest.jsp?action=todo";
View Full Code Here

TOP

Related Classes of Games.modeles.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.