public final class HypersistenceSessionFactoryBuilderFactory extends Object implements org.hibernate.boot.spi.SessionFactoryBuilderFactory
HypersistenceSessionFactoryBuilderFactory replaces the default Hibernate SessionFactoryBuilder
with the Hypersistence Optimizer-specific SessionFactoryBuilder that allows instrumenting various JPA or Hibernate-specific methods.
The HypersistenceSessionFactoryBuilderFactory can be registered in a
/META-INF/services/org.hibernate.boot.spi.SessionFactoryBuilderFactory file that must contain the
fully-qualified class name of this class:
io.hypersistence.optimizer.hibernate.decorator.HypersistenceSessionFactoryBuilderFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
ENABLE_AUTO_SESSION_FACTORY_DECORATION |
| Constructor and Description |
|---|
HypersistenceSessionFactoryBuilderFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.hibernate.boot.SessionFactoryBuilder |
getSessionFactoryBuilder(org.hibernate.boot.spi.MetadataImplementor metadataImplementor,
org.hibernate.boot.spi.SessionFactoryBuilderImplementor sessionFactoryBuilderImplementor)
Get the Hypersistence Optimizer
SessionFactoryBuilder. |
public static final String ENABLE_AUTO_SESSION_FACTORY_DECORATION
public HypersistenceSessionFactoryBuilderFactory()
public org.hibernate.boot.SessionFactoryBuilder getSessionFactoryBuilder(org.hibernate.boot.spi.MetadataImplementor metadataImplementor,
org.hibernate.boot.spi.SessionFactoryBuilderImplementor sessionFactoryBuilderImplementor)
SessionFactoryBuilder.getSessionFactoryBuilder in interface org.hibernate.boot.spi.SessionFactoryBuilderFactorymetadataImplementor - Hibernate metadata implementorsessionFactoryBuilderImplementor - Hibernate session factory builder implementorSessionFactoryBuilderCopyright © 2026. All rights reserved.