diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/HibernateOrmRuntimeConfigPersistenceUnit.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/HibernateOrmRuntimeConfigPersistenceUnit.java index 6f0c9cc49a13a..3ca13e90a4354 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/HibernateOrmRuntimeConfigPersistenceUnit.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/HibernateOrmRuntimeConfigPersistenceUnit.java @@ -153,7 +153,7 @@ public static class HibernateOrmConfigPersistenceUnitLog { * If set, Hibernate will log queries that took more than specified number of milliseconds to execute. */ @ConfigItem - public Optional queriesSlowerThanMs; + public Optional queriesSlowerThanMs = Optional.empty(); public boolean isAnyPropertySet() { return sql || !formatSql || jdbcWarnings.isPresent() || queriesSlowerThanMs.isPresent();