Uses of Interface
org.hibernate.SessionFactory
-
Packages that use SessionFactory Package Description org.hibernate This package defines the central Hibernate APIs, beginning withSessionFactory, which represents an instance of Hibernate at runtime and is the source of new instances ofSessionandStatelessSession, the most important APIs exposing persistence-related operations for entities.org.hibernate.boot This package contains the interfaces that make up the bootstrap API for Hibernate.org.hibernate.boot.spi A range of SPIs allowing integration with—and customization of—the process of building metadata.org.hibernate.cfg This package defines APIs for configuring Hibernate.org.hibernate.engine.spi This package defines some central internal SPI abstractions used throughout the implementation of Hibernate.org.hibernate.type.spi Defines a registry for HibernateTypes. -
-
Uses of SessionFactory in org.hibernate
Methods in org.hibernate that return SessionFactory Modifier and Type Method Description SessionFactoryCache. getSessionFactory()TheSessionFactoryto which thisCachebelongs.SessionFactorySession. getSessionFactory()Get the session factory which created this session.Methods in org.hibernate with parameters of type SessionFactory Modifier and Type Method Description static <E> EHibernate. createDetachedProxy(SessionFactory sessionFactory, Class<E> entityClass, Object id)Obtain a detached, uninitialized reference (a proxy) for a persistent entity with the given identifier.default voidSessionFactoryObserver. sessionFactoryClosed(SessionFactory factory)Callback to indicate that the given factory has been closed.default voidSessionFactoryObserver. sessionFactoryClosing(SessionFactory factory)Callback to indicate that the given factory is about to close.default voidSessionFactoryObserver. sessionFactoryCreated(SessionFactory factory)Callback to indicate that the given factory has been created and is now ready for use. -
Uses of SessionFactory in org.hibernate.boot
Methods in org.hibernate.boot that return SessionFactory Modifier and Type Method Description SessionFactorySessionFactoryBuilder. build()After all options have been set, build the SessionFactory.SessionFactoryMetadata. buildSessionFactory()Short-hand form of building aSessionFactorythrough the builder without any additional option overrides. -
Uses of SessionFactory in org.hibernate.boot.spi
Methods in org.hibernate.boot.spi that return SessionFactory Modifier and Type Method Description SessionFactoryAbstractDelegatingSessionFactoryBuilder. build()SessionFactoryAbstractDelegatingMetadata. buildSessionFactory() -
Uses of SessionFactory in org.hibernate.cfg
Methods in org.hibernate.cfg that return SessionFactory Modifier and Type Method Description SessionFactoryConfiguration. buildSessionFactory()Create aSessionFactoryusing the properties and mappings in this configuration.SessionFactoryConfiguration. buildSessionFactory(ServiceRegistry serviceRegistry)Create aSessionFactoryusing the properties and mappings in this configuration. -
Uses of SessionFactory in org.hibernate.engine.spi
Subinterfaces of SessionFactory in org.hibernate.engine.spi Modifier and Type Interface Description interfaceSessionFactoryImplementorDefines the internal contract between theSessionFactoryand the internal implementation of Hibernate.Classes in org.hibernate.engine.spi that implement SessionFactory Modifier and Type Class Description classSessionFactoryDelegatingImplBase delegating implementation of theSessionFactoryandSessionFactoryImplementorcontracts for intended for easier implementation ofSessionFactory.Methods in org.hibernate.engine.spi that return SessionFactory Modifier and Type Method Description SessionFactorySessionLazyDelegator. getSessionFactory() -
Uses of SessionFactory in org.hibernate.type.spi
Methods in org.hibernate.type.spi with parameters of type SessionFactory Modifier and Type Method Description voidTypeConfiguration. sessionFactoryClosed(SessionFactory factory)voidTypeConfiguration. sessionFactoryCreated(SessionFactory factory)
-