Class SessionLazyDelegator

java.lang.Object
org.hibernate.engine.spi.SessionLazyDelegator
All Implemented Interfaces:
EntityManager, Serializable, AutoCloseable, QueryProducer, Session, SharedSessionContract

public class SessionLazyDelegator extends Object implements Session
This helper class allows decorating a Session instance, while the instance itself is lazily provided via a Supplier. When the decorated instance is readily available, one should prefer using SessionDelegatorBaseImpl.

Another difference with SessionDelegatorBaseImpl is that this type only implements Session.

See Also: