Interface HibernateOrmRuntimeConfig


@ConfigMapping(prefix="quarkus.hibernate-orm") @ConfigRoot(phase=RUN_TIME) public interface HibernateOrmRuntimeConfig
  • 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

      static String extensionPropertyKey(String radical)
    • puPropertyKey

      static String puPropertyKey(String puName, String radical)
    • puPropertyKeys

      static List<String> puPropertyKeys(String puName, String radical)
      Returns both the quoted and unquoted property key variants for a persistence unit property.

      SmallRye Config treats quarkus.hibernate-orm."pu-name".x and quarkus.hibernate-orm.pu-name.x as 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.