Class HibernateOrmRuntimeConfigPersistenceUnit.HibernateOrmConfigPersistenceUnitLog

java.lang.Object
io.quarkus.hibernate.orm.runtime.HibernateOrmRuntimeConfigPersistenceUnit.HibernateOrmConfigPersistenceUnitLog
Enclosing class:
HibernateOrmRuntimeConfigPersistenceUnit

public static class HibernateOrmRuntimeConfigPersistenceUnit.HibernateOrmConfigPersistenceUnitLog extends Object
  • Field Details

    • 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.
  • Constructor Details

    • HibernateOrmConfigPersistenceUnitLog

      public HibernateOrmConfigPersistenceUnitLog()
  • Method Details

    • isAnyPropertySet

      public boolean isAnyPropertySet()