Interface HibernateOrmRuntimeConfigPersistenceUnit.HibernateOrmConfigPersistenceUnitLog

Enclosing interface:
HibernateOrmRuntimeConfigPersistenceUnit

public static interface HibernateOrmRuntimeConfigPersistenceUnit.HibernateOrmConfigPersistenceUnitLog
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Format the SQL logs if SQL log is enabled
    Whether JDBC warnings should be collected and logged.
    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.
  • Method Details

    • sql

      @WithDefault("false") boolean sql()
      Show SQL logs and format them nicely.

      Setting it to true is obviously not recommended in production.

    • formatSql

      @WithDefault("true") boolean formatSql()
      Format the SQL logs if SQL log is enabled
    • jdbcWarnings

      @ConfigDocDefault("depends on dialect") Optional<Boolean> jdbcWarnings()
      Whether JDBC warnings should be collected and logged.
    • queriesSlowerThanMs

      Optional<Long> queriesSlowerThanMs()
      If set, Hibernate will log queries that took more than specified number of milliseconds to execute.