Пример #1
0
 @Override
 public void updateSession(TolvenSessionState tolvenSessionState) {
   if (logger.isDebugEnabled()) {
     logger.debug("Updating session: " + tolvenSessionState.getId());
   }
   em.merge(tolvenSessionState);
   if (logger.isDebugEnabled()) {
     logger.debug("Updated session: " + tolvenSessionState.getId());
   }
 }
Пример #2
0
 @Override
 public Serializable persistSession(TolvenSessionState tolvenSessionState) {
   if (logger.isDebugEnabled()) {
     logger.debug("Persisting session: " + tolvenSessionState.getId());
   }
   em.persist(tolvenSessionState);
   if (logger.isDebugEnabled()) {
     logger.debug("Persisted session: " + tolvenSessionState.getId());
   }
   return tolvenSessionState.getId();
 }