You don't see
LocalSessionFactoryBean's getCurrentSession()
Its bacause from api docs here
protected abstract SessionFactory buildSessionFactory()
throws Exception
Build the underlying Hibernate SessionFactory.
Returns:
the raw SessionFactory (potentially to be wrapped with a transaction-aware proxy before it is exposed to the application)
and see this
This factory bean will by default expose a transaction-aware SessionFactory proxy, letting data access code work with the plain Hibernate SessionFactory and its getCurrentSession() method, while still being able to participate in current Spring-managed transactions: