Skip to content

Commit

Permalink
Merge pull request #23422 from gsmet/default-schema-default-catalog
Browse files Browse the repository at this point in the history
Initialize defaultCatalog and defaultSchema in Hibernate ORM config
  • Loading branch information
gsmet authored Feb 4, 2022
2 parents 14584f4 + 407910c commit 3502f4f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ public static class HibernateOrmConfigPersistenceUnitDatabase {
*/
@ConfigItem
@ConvertWith(TrimmedStringConverter.class)
public Optional<String> defaultCatalog;
public Optional<String> defaultCatalog = Optional.empty();

/**
* The default schema to use for the database objects.
*/
@ConfigItem
@ConvertWith(TrimmedStringConverter.class)
public Optional<String> defaultSchema;
public Optional<String> defaultSchema = Optional.empty();

public boolean isAnyPropertySet() {
return generation.isAnyPropertySet()
Expand Down

0 comments on commit 3502f4f

Please sign in to comment.