Class HibernateOrmConfig


  • @ConfigRoot
    public class HibernateOrmConfig
    extends Object
    • Field Detail

      • enabled

        @ConfigItem(defaultValue="true")
        public boolean enabled
        Whether Hibernate ORM is enabled *during the build*. If Hibernate ORM is disabled during the build, all processing related to Hibernate ORM will be skipped, but it will not be possible to activate Hibernate ORM at runtime: `quarkus.hibernate-orm.active` will default to `false` and setting it to `true` will lead to an error.
      • defaultPersistenceUnit

        @ConfigItem(name="<<parent>>")
        public HibernateOrmConfigPersistenceUnit defaultPersistenceUnit
        Configuration for the default persistence unit.
      • persistenceUnits

        @ConfigDocSection
        @ConfigDocMapKey("persistence-unit-name")
        @ConfigItem(name="<<parent>>")
        public Map<String,​HibernateOrmConfigPersistenceUnit> persistenceUnits
        Additional named persistence units.
      • statistics

        @ConfigItem
        public Optional<Boolean> statistics
        Whether statistics collection is enabled. If 'metrics.enabled' is true, then the default here is considered true, otherwise the default is false.
      • logSessionMetrics

        @ConfigItem
        public Optional<Boolean> logSessionMetrics
        Whether session metrics should be appended into the server log for each Hibernate session. This only has effect if statistics are enabled (`quarkus.hibernate-orm.statistics`). The default is false (which means both `statistics` and `log-session-metrics` need to be enabled for the session metrics to appear in the log).
    • Constructor Detail

      • HibernateOrmConfig

        public HibernateOrmConfig()
    • Method Detail

      • isAnyNonPersistenceXmlPropertySet

        public boolean isAnyNonPersistenceXmlPropertySet()