Class SessionHolder

All Implemented Interfaces:
ResourceHolder

public class SessionHolder extends EntityManagerHolder
Resource holder wrapping a Hibernate Session (plus an optional Transaction). HibernateTransactionManager binds instances of this class to the thread, for a given SessionFactory. Extends EntityManagerHolder, automatically exposing an EntityManager handle.

Note: This is an SPI class, not intended to be used by applications.

Since:
7.0
Author:
Juergen Hoeller
See Also: