spring-framework / org.springframework.orm.hibernate5 / SpringSessionContext / currentSession

currentSession

open fun currentSession(): Session

Retrieve the Spring-managed Session for the current thread, if any.