From 407910c09d2fa81c4300bbeefd0c40e4d947a436 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 3 Feb 2022 19:42:42 +0100 Subject: [PATCH] Initialize defaultCatalog and defaultSchema in Hibernate ORM config --- .../orm/runtime/HibernateOrmRuntimeConfigPersistenceUnit.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 98bb49330d9d3..50e496720d547 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 @@ -52,14 +52,14 @@ public static class HibernateOrmConfigPersistenceUnitDatabase { */ @ConfigItem @ConvertWith(TrimmedStringConverter.class) - public Optional defaultCatalog; + public Optional defaultCatalog = Optional.empty(); /** * The default schema to use for the database objects. */ @ConfigItem @ConvertWith(TrimmedStringConverter.class) - public Optional defaultSchema; + public Optional defaultSchema = Optional.empty(); public boolean isAnyPropertySet() { return generation.isAnyPropertySet()