| Modifier and Type | Field and Description |
|---|---|
| private final BootstrapContext | |
| private final MetadataImplementor | metadata
Deprecated
as a consequence of
MetadataImplementor being deprecated.
|
| private final SessionFactoryOptionsBuilder |
| Access | Constructor and Description |
|---|---|
| public | SessionFactoryBuilderImpl(MetadataImplementor metadata, BootstrapContext bootstrapContext)
Deprecated
as a consequence of
MetadataImplementor being deprecated.
|
| public | SessionFactoryBuilderImpl(MetadataImplementor metadata, SessionFactoryOptionsBuilder optionsBuilder, BootstrapContext context)
Deprecated
as a consequence of
MetadataImplementor being deprecated.
|
| public | SessionFactoryBuilderImpl(MetadataImplementor metadata, SessionFactoryOptionsBuilder optionsBuilder)
Deprecated
for removal since 6.2. This constructor will be removed
|
| Modifier and Type | Method and Description |
|---|---|
| public SessionFactoryBuilder | addEntityNameResolver(EntityNameResolver...
The entityNameResolvers to add entityNameResolvers)Implements org. |
| public SessionFactoryBuilder | addSessionFactoryObservers(SessionFactoryObserver...
The observers to add observers)Implements org. |
| public SessionFactoryBuilder | |
| public SessionFactoryBuilder | applyAutoClosing(boolean
true indicates they should be auto-closed; false indicates not.Implements org. org.s should be automatically
closed at the end of the transaction.
|
| public SessionFactoryBuilder | applyAutoFlushing(boolean
true indicates they should be auto-flushed; false indicates not.Implements org. org.s should be automatically
flushed at the end of the transaction.
|
| public SessionFactoryBuilder | applyAutomaticEvictionOfCollectionCaches(boolean
true indicates that these collection caches should be evicted automatically.Implements org. |
| public SessionFactoryBuilder | applyBatchFetchStyle(BatchFetchStyle
The style to use style)Implements org.
Deprecated
as a consequence of
What style of batching should be used?
BatchFetchStyle being deprecated.
|
| public SessionFactoryBuilder | applyBeanManager(Object
The CDI beanManager)BeanManager to useImplements org. jakarta..
|
| public SessionFactoryBuilder | applyCacheRegionPrefix(String
The prefix. prefix)Implements org. |
| public SessionFactoryBuilder | applyCollectionsInDefaultFetchGroup(boolean
true collections should be included, false they should not.
Default is true.Implements org. |
| public SessionFactoryBuilder | applyConnectionHandlingMode(PhysicalConnectionHandlingMode
The handling mode to apply connectionHandlingMode)Implements org. |
| public SessionFactoryBuilder | applyConnectionProviderDisablesAutoCommit(boolean providerDisablesAutoCommit)
Implements org. |
| public SessionFactoryBuilder | applyCurrentTenantIdentifierResolver(CurrentTenantIdentifierResolver<?>
The resolution strategy to use. resolver)Implements org. CurrentTenantIdentifierResolver that is responsible for
resolving the current tenant identifier.
|
| public SessionFactoryBuilder | applyCustomEntityDirtinessStrategy(CustomEntityDirtinessStrategy
The custom strategy to be used. strategy)Implements org. CustomEntityDirtinessStrategy.
|
| public SessionFactoryBuilder | applyDefaultBatchFetchSize(int
The size to use for batch fetching for entities/collections which
do not specify an explicit batch fetch size. size)Implements org. |
| public SessionFactoryBuilder | applyDefaultNullPrecedence(NullPrecedence
The default null precedence to use. nullPrecedence)Implements org. NULLS FIRST or NULLS LAST,
to order by clauses rendered in SQL queries.
|
| public SessionFactoryBuilder | applyDelayedEntityLoaderCreations(boolean delay)
Implements org. |
| public SessionFactoryBuilder | applyDirectReferenceCaching(boolean
true indicates that applicable entities will be stored into the
second-level cache directly by reference; false indicates that all entities will be stored
via the extraction approach.Implements org. |
| public SessionFactoryBuilder | applyEntityNotFoundDelegate(EntityNotFoundDelegate
The delegate/strategy to use. entityNotFoundDelegate)Implements org. EntityNotFoundDelegate.
|
| public SessionFactoryBuilder | applyGetGeneratedKeysSupport(boolean
true indicates we should use JDBC getGeneratedKeys support; false
indicates we should not.Implements org. java. feature be used for
retrieval of *insert-generated* ids?
|
| public SessionFactoryBuilder | applyIdentifierRollbackSupport(boolean
true indicates identifiers should be unset; false indicates not.Implements org. |
| public SessionFactoryBuilder | applyInterceptor(Interceptor
The interceptor interceptor)Implements org. Interceptor associated with the SessionFactory,
which will be used by all sessions unless an interceptor is explicitly
specified using org..
|
| public SessionFactoryBuilder | applyJdbcBatchingForVersionedEntities(boolean
The batch size to use. enabled)Implements org. |
| public SessionFactoryBuilder | applyJdbcBatchSize(int
The batch size to use. size)Implements org. |
| public SessionFactoryBuilder | applyJdbcFetchSize(int
The fetch size to be passed to the driver. size)Implements org. |
| public SessionFactoryBuilder | applyJsonFormatMapper(FormatMapper
The jsonFormatMapper)FormatMapper to use.Implements org. format mapper to use for serialization/deserialization of JSON properties.
|
| public SessionFactoryBuilder | applyJtaTrackingByThread(boolean
true indicates we should track by thread; false indicates notImplements org. org. or
org.,
should it track JTA transactions by thread in an attempt to detect timeouts?
|
| public SessionFactoryBuilder | applyLazyInitializationOutsideTransaction(boolean
true indicates initialization outside the transaction
should be allowed; false indicates it should not.Implements org. |
| public SessionFactoryBuilder | applyMaximumFetchDepth(int
The depth for limiting joins. depth)Implements org. |
| public SessionFactoryBuilder | applyMinimalPutsForCaching(boolean
true indicates Hibernate should first check whether data exists and only
push to the cache if it does not already exist. false indicates to perform the default
behavior.Implements org. |
| public SessionFactoryBuilder | applyMultiTenancy(boolean
True if multi-tenancy in use. enabled)Implements org. |
| public SessionFactoryBuilder | applyName(String
The name to use sessionFactoryName)Implements org. SessionFactory.
|
| public SessionFactoryBuilder | applyNameAsJndiName(boolean
true indicates that the name specified in
applyName will be used for binding the SessionFactory into JNDI.Implements org. SessionFactory should be registered in JNDI,
under the name specified using applyName(String).
|
| public SessionFactoryBuilder | applyNamedQueryCheckingOnStartup(boolean
true indicates that they should; false indicates they should not.Implements org. |
| public SessionFactoryBuilder | applyNullabilityChecking(boolean
true indicates that Hibernate should perform nullness checking; false indicates
it should not.Implements org. |
| public SessionFactoryBuilder | applyOrderingOfInserts(boolean
true indicates that ordering should be enabled; false indicates notImplements org. |
| public SessionFactoryBuilder | applyOrderingOfUpdates(boolean
true indicates that ordering should be enabled; false indicates notImplements org. |
| public SessionFactoryBuilder | applyPreferUserTransactions(boolean
true indicates we should prefer
jakarta.; false indicates we
should prefer jakarta.Implements org. org. or
org.,
should it prefer to use jakarta. in
preference to jakarta.?
|
| public SessionFactoryBuilder | applyQueryCacheSupport(boolean
true indicates we should enable the use of second level query
caching; false indicates we should disable the use of second level query caching.Implements org. |
| public SessionFactoryBuilder | applyScrollableResultsSupport(boolean
true to enable this support, false to disable itImplements org. |
| public SessionFactoryBuilder | applySecondLevelCacheSupport(boolean
true indicates we should enable the use of second level caching;
false indicates we should disable the use of second level caching.Implements org. |
| public SessionFactoryBuilder | applySqlComments(boolean
true indicates comments should be applied; false indicates not.Implements org. |
| public SessionFactoryBuilder | applySqlFunction(String
The function name to register it under registrationName, SqmFunctionDescriptor functionDescriptor)Implements org. SQL function with the underlying
org..
|
| public SessionFactoryBuilder | applyStatelessInterceptor(Class<? extends Interceptor>
The interceptor class statelessInterceptorClass)Implements org. Class associated with the
SessionFactory, which is used to instantiate a new interceptor
for each session, unless an interceptor is explicitly specified using
org..
|
| public SessionFactoryBuilder | applyStatelessInterceptor(Supplier<? extends Interceptor>
Supplier instance which is used to retrieve the interceptorImplements org. Supplier associated with the
SessionFactory, which is used to obtain an interceptor for
each session, unless an interceptor is explicitly specified using
org..
|
| public SessionFactoryBuilder | applyStatementInspector(StatementInspector
The StatementInspector statementInspector)Implements org. StatementInspector associated with the
SessionFactory, which will be used by all sessions unless a
statement inspector is explicitly specified using
org.
|
| public SessionFactoryBuilder | applyStatisticsSupport(boolean
true indicates that statistics gathering should be enabled; false indicates not.Implements org. |
| public SessionFactoryBuilder | applyStructuredCacheEntries(boolean
true indicates that structured (human-readable) cache entries should be used;
false indicates that the native entry structure should be used.Implements org. |
| public SessionFactoryBuilder | applySubselectFetchEnabled(boolean
true indicates that subselect fetching is enabledImplements org. |
| public SessionFactoryBuilder | |
| public SessionFactoryBuilder | |
| public SessionFactoryBuilder | applyValidatorFactory(Object
The Bean Validation validatorFactory)ValidatorFactory to useImplements org. jakarta..
|
| public SessionFactoryBuilder | applyXmlFormatMapper(FormatMapper
The xmlFormatMapper)FormatMapper to use.Implements org. format mapper to use for serialization/deserialization of XML properties.
|
| public SessionFactory | build()
Implements org. |
| public SessionFactoryOptions | buildSessionFactoryOptions()
Implements org. SessionFactoryOptions that will ultimately be passed to the
constructor of org..
|
| public void | |
| public void | disableRefreshDetachedEntity()
Overrides default org. org.
is not enabled.
|
| public SessionFactoryBuilder | enableJpaClosedCompliance(boolean enabled)
Implements org. |
| public SessionFactoryBuilder | enableJpaListCompliance(boolean enabled)
Implements org. |
| public SessionFactoryBuilder | enableJpaOrderByMappingCompliance(boolean enabled)
Implements org. |
| public SessionFactoryBuilder | enableJpaQueryCompliance(boolean enabled)
Implements org. |
| public SessionFactoryBuilder | enableJpaTransactionCompliance(boolean enabled)
Implements org. |
| public SessionFactoryBuilder | enableReleaseResourcesOnCloseEnabled(boolean enable)
Implements org. jakarta. be
released immediately on close?
|