Class SharedSessionCreator

java.lang.Object
org.springframework.orm.jpa.hibernate.SharedSessionCreator

public abstract class SharedSessionCreator extends Object
Delegate for creating shareable Session/StatelessSession references for a given SessionFactory.

Typically used next to LocalSessionFactoryBuilder. Note that LocalSessionFactoryBean exposes shared Session as well as StatelessSession references for dependency injection already, avoiding the need to define separate beans for the shared sessions.

Since:
7.0
Author:
Juergen Hoeller
See Also: