@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()); } }
@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(); }