SessionFactory given a number of options.
| Modifier and Type | Method and Description |
|---|---|
| public SessionFactoryBuilder | Returns: this, for method chainingThe entityNameResolvers to add entityNameResolvers)Specifies one or more entity name resolvers. |
| public SessionFactoryBuilder | Returns: this, for method chainingThe observers to add observers)Specifies one or more observers. |
| public SessionFactoryBuilder | |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue indicates they should be auto-closed; false indicates not.Specifies whether |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue indicates they should be auto-flushed; false indicates not.Applies whether |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue indicates that these collection caches should be evicted automatically.When using bidirectional many-to-one associations and caching the one-to-many side it is expected that both sides of the association are managed (actually that is true of all bidirectional associations). |
| public SessionFactoryBuilder | Returns: this, for method chainingThe style to use style)
Deprecated
since 6.0. : an appropriate style is selected
What style of batching should be used?
|
| public SessionFactoryBuilder | Returns: this, for method chainingThe CDI beanManager)BeanManager to useSpecifies a CDI |
| public SessionFactoryBuilder | Returns: this, for method chainingThe prefix. prefix)Specify a prefix to prepended to all cache region names. |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue collections should be included, false they should not.
Default is true.Should collections be included in the default fetch group when bytecode enhancement is used? |
| public SessionFactoryBuilder | Returns: this, for method chainingThe handling mode to apply connectionHandlingMode)Specifies the connection handling mode for JDBC connections. |
| public SessionFactoryBuilder | |
| public SessionFactoryBuilder | Returns: this, for method chainingThe resolution strategy to use. resolver)Specifies a |
| public SessionFactoryBuilder | Returns: this, for method chainingThe custom strategy to be used. strategy)Specifies a |
| public SessionFactoryBuilder | Returns: this, for method chainingThe size to use for batch fetching for entities/collections which
do not specify an explicit batch fetch size. size)Specifies a default batch fetch size for all entities and collections which do not otherwise specify a batch fetch size. |
| public SessionFactoryBuilder | Returns: this, for method chainingThe default null precedence to use. nullPrecedence)Apply a null precedence, |
| public SessionFactoryBuilder | |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue 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.Generally, Hibernate will extract the information from an entity and put that extracted information into the second-level cache. |
| public SessionFactoryBuilder | Returns: this, for method chainingThe delegate/strategy to use. entityNotFoundDelegate)Specifies an |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue indicates we should use JDBC getGeneratedKeys support; false
indicates we should not.Should JDBC |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue indicates identifiers should be unset; false indicates not.Should the generated identifier be "unset" when an entity is deleted? |
| public SessionFactoryBuilder | Returns: this, for method chainingThe interceptor interceptor)Specifies an |
| public SessionFactoryBuilder | Returns: this, for method chainingThe batch size to use. enabled)This setting controls whether versioned entities will be included in JDBC batching. |
| public SessionFactoryBuilder | Returns: this, for method chainingThe batch size to use. size)Specifies the maximum number of statements to batch together in a JDBC batch for insert, update and delete operations. |
| public SessionFactoryBuilder | Returns: this, for method chainingThe fetch size to be passed to the driver. size)Apply a fetch size to the JDBC driver for fetching results. |
| public SessionFactoryBuilder | Returns: this, for method chainingThe jsonFormatMapper)FormatMapper to use.Specifies a |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue indicates we should track by thread; false indicates notIf using the built-in JTA-based
|
| public SessionFactoryBuilder | Returns: this, for method chainingtrue indicates initialization outside the transaction
should be allowed; false indicates it should not.Should the application be allowed to initialize uninitialized lazy state outside the bounds of a transaction? |
| public SessionFactoryBuilder | Returns: this, for method chainingThe depth for limiting joins. depth)Apply a limit to the depth Hibernate will use for outer joins. |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue 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.By default, Hibernate will always just push data into the cache without first checking if that data already exists. |
| public SessionFactoryBuilder | Returns: this, for method chainingTrue if multi-tenancy in use. enabled)Specifies whether multi-tenancy is enabled |
| public SessionFactoryBuilder | Returns: this, for method chainingThe name to use sessionFactoryName)Specifies a name for the |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue indicates that the name specified in
applyName will be used for binding the SessionFactory into JNDI.Specifies that the |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue indicates that they should; false indicates they should not.Should named queries be checked on startup? |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue indicates that Hibernate should perform nullness checking; false indicates
it should not.Should attributes using columns marked as not-null be checked (by Hibernate) for nullness, or should this be left as a job for the database? |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue indicates that ordering should be enabled; false indicates notSpecify whether ordering of inserts should be enabled. |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue indicates that ordering should be enabled; false indicates notSpecify whether ordering of updates should be enabled. |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue indicates we should prefer
jakarta.; false indicates we
should prefer jakarta.If using the built-in JTA-based
|
| public SessionFactoryBuilder | Returns: this, for method chainingtrue indicates we should enable the use of second level query
caching; false indicates we should disable the use of second level query caching.Should second level query caching support be enabled? |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue to enable this support, false to disable itShould scrollable results be supported in queries? |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue indicates we should enable the use of second level caching;
false indicates we should disable the use of second level caching.Should second level caching support be enabled? |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue indicates comments should be applied; false indicates not.Should Hibernate apply comments to SQL it generates? |
| public SessionFactoryBuilder | Returns: this, for method chainingThe function name to register it under registrationName, SqmFunctionDescriptor functionDescriptor)Register a |
| public SessionFactoryBuilder | Returns: this, for method chainingThe interceptor class statelessInterceptorClass)Specifies an interceptor |
| public SessionFactoryBuilder | Returns: this, for method chainingSupplier instance which is used to retrieve the interceptorSpecifies an interceptor |
| public SessionFactoryBuilder | Returns: this, for method chainingThe StatementInspector statementInspector)Specifies a |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue indicates that statistics gathering should be enabled; false indicates not.Specifies whether statistics gathering is enabled. |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue indicates that structured (human-readable) cache entries should be used;
false indicates that the native entry structure should be used.By default, Hibernate stores data in the cache in its own optimized format. |
| public SessionFactoryBuilder | Returns: this, for method chainingtrue indicates that subselect fetching is enabledEnable the use of subselect fetching. |
| public SessionFactoryBuilder | |
| public SessionFactoryBuilder | Returns: this, for method chainingSpecifies a |
| public SessionFactoryBuilder | Returns: this, for method chainingThe Bean Validation validatorFactory)ValidatorFactory to useSpecifies a Bean Validation |
| public SessionFactoryBuilder | Returns: this, for method chainingThe xmlFormatMapper)FormatMapper to use.Specifies a |
| public SessionFactory | |
| public SessionFactoryBuilder | |
| public SessionFactoryBuilder | enableJpaListCompliance(boolean enabled)
Deprecated
since 6.0. Use
org. instead
|
| public SessionFactoryBuilder | |
| public SessionFactoryBuilder | |
| public SessionFactoryBuilder | |
| public SessionFactoryBuilder | enableReleaseResourcesOnCloseEnabled(boolean enable)
Should resources held by an |