Interface SessionFactoryOptions

    • Method Detail

      • getServiceRegistry

        StandardServiceRegistry getServiceRegistry()
        The service registry to use in building the factory.
        Returns:
        The service registry to use.
      • getBeanManagerReference

        java.lang.Object getBeanManagerReference()
      • getValidatorFactoryReference

        java.lang.Object getValidatorFactoryReference()
      • isJpaBootstrap

        boolean isJpaBootstrap()
        Was building of the SessionFactory initiated through JPA bootstrapping, or through Hibernate's native bootstrapping?
        Returns:
        true indicates the SessionFactory was built through JPA bootstrapping; false indicates it was built through native bootstrapping.
      • isJtaTransactionAccessEnabled

        boolean isJtaTransactionAccessEnabled()
      • isAllowRefreshDetachedEntity

        default boolean isAllowRefreshDetachedEntity()
      • getSessionFactoryName

        java.lang.String getSessionFactoryName()
        The name to be used for the SessionFactory. This is use both in:
        Returns:
        The SessionFactory name
      • isSessionFactoryNameAlsoJndiName

        boolean isSessionFactoryNameAlsoJndiName()
        Is the SesssionFactory name also a JNDI name, indicating we should bind it into JNDI?
        Returns:
        true if the SessionFactory name is also a JNDI name; false otherwise.
      • isFlushBeforeCompletionEnabled

        boolean isFlushBeforeCompletionEnabled()
      • isAutoCloseSessionEnabled

        boolean isAutoCloseSessionEnabled()
      • isStatisticsEnabled

        boolean isStatisticsEnabled()
      • getInterceptor

        Interceptor getInterceptor()
        Get the interceptor to use by default for all sessions opened from this factory.
        Returns:
        The interceptor to use factory wide. May be null
      • getStatelessInterceptorImplementor

        @Deprecated
        java.lang.Class<? extends Interceptor> getStatelessInterceptorImplementor()
        Get the interceptor to use by default for all sessions opened from this factory.
        Returns:
        The interceptor to use factory wide. May be null
      • getStatelessInterceptorImplementorSupplier

        default java.util.function.Supplier<? extends Interceptor> getStatelessInterceptorImplementorSupplier()
        Get the interceptor to use by default for all sessions opened from this factory.
        Returns:
        The interceptor to use factory wide. May be null
      • isIdentifierRollbackEnabled

        boolean isIdentifierRollbackEnabled()
      • getDefaultEntityMode

        EntityMode getDefaultEntityMode()
      • isCheckNullability

        boolean isCheckNullability()
      • isInitializeLazyStateOutsideTransactionsEnabled

        boolean isInitializeLazyStateOutsideTransactionsEnabled()
      • isDelayBatchFetchLoaderCreationsEnabled

        boolean isDelayBatchFetchLoaderCreationsEnabled()
      • getDefaultBatchFetchSize

        int getDefaultBatchFetchSize()
      • getMaximumFetchDepth

        java.lang.Integer getMaximumFetchDepth()
      • isOrderUpdatesEnabled

        boolean isOrderUpdatesEnabled()
      • isOrderInsertsEnabled

        boolean isOrderInsertsEnabled()
      • isJtaTrackByThread

        boolean isJtaTrackByThread()
      • getQuerySubstitutions

        java.util.Map getQuerySubstitutions()
      • isNamedQueryStartupCheckingEnabled

        boolean isNamedQueryStartupCheckingEnabled()
      • isConventionalJavaConstants

        boolean isConventionalJavaConstants()
      • isSecondLevelCacheEnabled

        boolean isSecondLevelCacheEnabled()
      • isQueryCacheEnabled

        boolean isQueryCacheEnabled()
      • getCacheRegionPrefix

        java.lang.String getCacheRegionPrefix()
      • isMinimalPutsEnabled

        boolean isMinimalPutsEnabled()
      • isStructuredCacheEntriesEnabled

        boolean isStructuredCacheEntriesEnabled()
      • isDirectReferenceCacheEntriesEnabled

        boolean isDirectReferenceCacheEntriesEnabled()
      • isAutoEvictCollectionCache

        boolean isAutoEvictCollectionCache()
      • getJdbcBatchSize

        int getJdbcBatchSize()
      • isJdbcBatchVersionedData

        boolean isJdbcBatchVersionedData()
      • isScrollableResultSetsEnabled

        boolean isScrollableResultSetsEnabled()
      • isWrapResultSetsEnabled

        boolean isWrapResultSetsEnabled()
      • isGetGeneratedKeysEnabled

        boolean isGetGeneratedKeysEnabled()
      • getJdbcFetchSize

        java.lang.Integer getJdbcFetchSize()
      • doesConnectionProviderDisableAutoCommit

        default boolean doesConnectionProviderDisableAutoCommit()
      • isCommentsEnabled

        boolean isCommentsEnabled()
      • getEntityNotFoundDelegate

        EntityNotFoundDelegate getEntityNotFoundDelegate()
        Get the delegate for handling entity-not-found exception conditions.
        Returns:
        The specific EntityNotFoundDelegate to use, May be null
      • getCustomSqlFunctionMap

        java.util.Map<java.lang.String,​SQLFunction> getCustomSqlFunctionMap()
      • setCheckNullability

        void setCheckNullability​(boolean enabled)
      • isPreferUserTransaction

        boolean isPreferUserTransaction()
      • isProcedureParameterNullPassingEnabled

        boolean isProcedureParameterNullPassingEnabled()
      • isCollectionJoinSubqueryRewriteEnabled

        boolean isCollectionJoinSubqueryRewriteEnabled()
      • isAllowOutOfTransactionUpdateOperations

        boolean isAllowOutOfTransactionUpdateOperations()
      • isReleaseResourcesOnCloseEnabled

        boolean isReleaseResourcesOnCloseEnabled()
      • getJdbcTimeZone

        java.util.TimeZone getJdbcTimeZone()
      • isQueryParametersValidationEnabled

        default boolean isQueryParametersValidationEnabled()
      • getCriteriaLiteralHandlingMode

        default LiteralHandlingMode getCriteriaLiteralHandlingMode()
      • jdbcStyleParamsZeroBased

        boolean jdbcStyleParamsZeroBased()
      • isFailOnPaginationOverCollectionFetchEnabled

        boolean isFailOnPaginationOverCollectionFetchEnabled()
      • inClauseParameterPaddingEnabled

        default boolean inClauseParameterPaddingEnabled()
      • nativeExceptionHandling51Compliance

        default boolean nativeExceptionHandling51Compliance()
      • isEnhancementAsProxyEnabled

        default boolean isEnhancementAsProxyEnabled()
        Can bytecode-enhanced entity classes be used as a "proxy"?