Interface HibernateOrmConfig
@ConfigMapping(prefix="quarkus.hibernate-orm")
@ConfigRoot
public interface HibernateOrmConfig
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptiondatabase()Database related configuration.booleanenabled()Whether Hibernate ORM is enabled *during the build*.default booleanlog()Logging configuration.Whether session metrics should be appended into the server log for each Hibernate session.metrics()Configuration related to metrics.default Map<String,HibernateOrmConfigPersistenceUnit> @WithUnnamedKey("<default>") Map<String,HibernateOrmConfigPersistenceUnit> Configuration for persistence units.Configuration for thepersistence.xmlhandling.Whether statistics collection is enabled.
-
Method Details
-
enabled
@WithDefault("true") 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. -
database
Database related configuration. -
persistenceUnits
@WithParentName @WithUnnamedKey("<default>") @WithDefaults @ConfigDocMapKey("persistence-unit-name") @WithUnnamedKey("<default>") Map<String,HibernateOrmConfigPersistenceUnit> persistenceUnits()Configuration for persistence units. -
defaultPersistenceUnit
-
namedPersistenceUnits
-
persistenceXml
HibernateOrmConfig.HibernateOrmConfigPersistenceXml persistenceXml()Configuration for thepersistence.xmlhandling. -
log
Logging configuration. -
statistics
Whether statistics collection is enabled. If 'metrics.enabled' is true, then the default here is considered true, otherwise the default is false. -
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). -
metrics
Configuration related to metrics. -
isAnyNonPersistenceXmlPropertySet
default boolean isAnyNonPersistenceXmlPropertySet()
-