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 StringextensionPropertyKey(String radical) @WithUnnamedKey("<default>") Map<String, HibernateOrmRuntimeConfigPersistenceUnit> Configuration for persistence units.static StringpuPropertyKey(String puName, String radical) puPropertyKeys(String puName, String radical) Returns both the quoted and unquoted property key variants for a persistence unit property.booleanEnable 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
-
puPropertyKeys
Returns both the quoted and unquoted property key variants for a persistence unit property.SmallRye Config treats
quarkus.hibernate-orm."pu-name".xandquarkus.hibernate-orm.pu-name.xas two completely independent properties with no cross-resolution: setting one does not make the other visible. Both forms must therefore be set when producing config defaults programmatically, and both must be checked when looking up user-supplied config.
-