Interface HibernateOrmConfig
@ConfigMapping(prefix="quarkus.hibernate-orm")
@ConfigRoot
public interface HibernateOrmConfig
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionbooleanblocking()Whether Hibernate ORM is working in blocking mode.database()Database related configuration.devui()Dev UI.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.mapping()JSON/XML mapping related configuration.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. -
blocking
@WithDefault("true") boolean blocking()Whether Hibernate ORM is working in blocking mode. Hibernate ORM's blocking `EntityManager`/`Session`/`SessionFactory` are normally disabled by default if no JDBC datasource is found. You can set this property to `false` if you want to disable them despite having a JDBC datasource. -
database
Database related configuration. -
mapping
JSON/XML mapping 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. -
devui
Dev UI. -
isAnyNonPersistenceXmlPropertySet
default boolean isAnyNonPersistenceXmlPropertySet()
-