Package org.myphotodiary.model

Examples of org.myphotodiary.model.SessionConfiguration.update()


      try {
        TypedQuery<SessionConfiguration> query = em.createQuery(
            "select config from SessionConfiguration config where config.user = ?1 and config.pwd = ?2", SessionConfiguration.class)
            .setParameter(1, newConfig.getUser()).setParameter(2, newConfig.getPwd());
        oldConfig = query.getSingleResult();
        oldConfig.update(newConfig);
        em.merge(oldConfig);
      } catch (NoResultException ex) {
        getServletContext().log("No directory data for: " + newConfig.getUser(), ex);
        em.persist(newConfig);
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.