@Test public void ReleaseSession() { assertNull(sessionContext.getCurrentSession()); assertNotNull(sessionContext.getOrCreateSession()); assertNotNull(sessionContext.getCurrentSession()); sessionContext.releaseSession(); assertNull(sessionContext.getCurrentSession()); }
public void releaseSession() { sessionHolder.remove(); }
SimpleSessionContext implements SessionContext { public void releaseSession() { sessionHolder.remove(); } }
SimpleSessionContext implements SessionContext { public void releaseSession() { sessionHolder.remove(); } SimpleSessionContext(SessionFactory sessionFactory); }
SimpleSessionContext implements SessionContext { public void releaseSession() { sessionHolder.remove(); } SimpleSessionContext(SessionFactory sessionFactory); @Override Session getCurrentSession(); Session getOrCreateSession(); void releaseSession(); }
SimpleSessionContext implements SessionContext { public void releaseSession() { sessionHolder.remove(); } SimpleSessionContext(SessionFactory sessionFactory); @Override Session getCurrentSession(); Session getOrCreateSession(); void releaseSession();  }