Package io.quarkus.hibernate.orm.runtime
Class HibernateOrmRuntimeConfigPersistenceUnit.HibernateOrmConfigPersistenceUnitLog
- java.lang.Object
-
- io.quarkus.hibernate.orm.runtime.HibernateOrmRuntimeConfigPersistenceUnit.HibernateOrmConfigPersistenceUnitLog
-
- Enclosing class:
- HibernateOrmRuntimeConfigPersistenceUnit
public static class HibernateOrmRuntimeConfigPersistenceUnit.HibernateOrmConfigPersistenceUnitLog extends Object
-
-
Field Summary
Fields Modifier and Type Field Description boolean
formatSql
Format the SQL logs if SQL log is enabledOptional<Boolean>
jdbcWarnings
Whether JDBC warnings should be collected and logged.Optional<Long>
queriesSlowerThanMs
If set, Hibernate will log queries that took more than specified number of milliseconds to execute.boolean
sql
Show SQL logs and format them nicely.
-
Constructor Summary
Constructors Constructor Description HibernateOrmConfigPersistenceUnitLog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAnyPropertySet()
-
-
-
Field Detail
-
sql
@ConfigItem public boolean sql
Show SQL logs and format them nicely.Setting it to true is obviously not recommended in production.
-
formatSql
@ConfigItem(defaultValue="true") public boolean formatSql
Format the SQL logs if SQL log is enabled
-
jdbcWarnings
@ConfigItem(defaultValueDocumentation="depends on dialect") public Optional<Boolean> jdbcWarnings
Whether JDBC warnings should be collected and logged.
-
queriesSlowerThanMs
@ConfigItem public Optional<Long> queriesSlowerThanMs
If set, Hibernate will log queries that took more than specified number of milliseconds to execute.
-
-