Class HibernateOrmConfig
java.lang.Object
io.quarkus.hibernate.orm.deployment.HibernateOrmConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionDatabase related configuration.Configuration for the default persistence unit.booleanWhether Hibernate ORM is enabled *during the build*.Logging configuration.Whether session metrics should be appended into the server log for each Hibernate session.Configuration related to metrics.Additional named persistence units.Configuration for thepersistence.xmlhandling.Whether statistics collection is enabled. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
-
Field Details
-
enabled
@ConfigItem(defaultValue="true") public boolean enabledWhether 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. -
defaultPersistenceUnit
Configuration for the default persistence unit. -
persistenceUnits
@ConfigDocSection @ConfigDocMapKey("persistence-unit-name") @ConfigItem(name="<<parent>>") public Map<String,HibernateOrmConfigPersistenceUnit> persistenceUnitsAdditional named persistence units. -
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.
-
-
Constructor Details
-
HibernateOrmConfig
public HibernateOrmConfig()
-
-
Method Details
-
isAnyNonPersistenceXmlPropertySet
public boolean isAnyNonPersistenceXmlPropertySet() -
getAllPersistenceUnitConfigsAsMap
-