Package org.hibernate.context.spi
package org.hibernate.context.spi
SPI-level contracts around "current session" and "current tenant" support.
-
ClassDescriptionBase support for
CurrentSessionContext
implementors.Defines the contract for objects which are able to manage the lifecycle of aSession
associated with a well-defined "context" or "scope", providing the concrete implementation behind the notion of the current session.A callback registered with theSessionFactory
that is responsible for resolving the current tenant identifier.