Package io.quarkus.hibernate.orm.runtime
Interface HibernateOrmRuntimeConfig
@ConfigMapping(prefix="quarkus.hibernate-orm")
@ConfigRoot(phase=RUN_TIME)
public interface HibernateOrmRuntimeConfig
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
extensionPropertyKey
(String radical) @WithUnnamedKey("<default>") Map<String,
HibernateOrmRuntimeConfigPersistenceUnit> Configuration for persistence units.static String
puPropertyKey
(String puName, String radical) boolean
Enable or disable access to a Hibernate ORM `EntityManager`/`Session`/`StatelessSession` *when no transaction is active* but a request scope is.
-
Method Details
-
persistenceUnits
@WithParentName @WithUnnamedKey("<default>") @WithDefaults @ConfigDocMapKey("persistence-unit-name") @WithUnnamedKey("<default>") Map<String,HibernateOrmRuntimeConfigPersistenceUnit> persistenceUnits()Configuration for persistence units. -
requestScopedSessionEnabled
@WithName("request-scoped.enabled") @WithDefault("true") boolean requestScopedSessionEnabled()Enable or disable access to a Hibernate ORM `EntityManager`/`Session`/`StatelessSession` *when no transaction is active* but a request scope is. When enabled, the corresponding sessions will be read-only. Defaults to enabled for backwards compatibility, but disabling this is recommended, to avoid inconsistent resulsts caused by queries running outside of transactions. -
extensionPropertyKey
-
puPropertyKey
-