Skip to content

Commit

Permalink
fix: supplier message on database mapping
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
  • Loading branch information
otaviojava committed May 19, 2023
1 parent a5b26ed commit c10d5d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public ArangoDBDocumentManager get() {
ArangoDBDocumentManagerFactory factory = configuration.apply(settings);
Optional<String> database = settings.get(DOCUMENT_DATABASE, String.class);
String db = database.orElseThrow(() -> new MappingException("Please, inform the database filling up the property "
+ DOCUMENT_DATABASE));
+ DOCUMENT_DATABASE.get()));
ArangoDBDocumentManager manager = factory.apply(db);
LOGGER.log(Level.FINEST, "Starting a ArangoDBDocumentManager instance using Eclipse MicroProfile Config," +
" database name: " + db);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public CouchbaseDocumentManager get() {
CouchbaseDocumentManagerFactory factory = configuration.apply(settings);
Optional<String> database = settings.get(DOCUMENT_DATABASE, String.class);
String db = database.orElseThrow(() -> new MappingException("Please, inform the database filling up the property "
+ DOCUMENT_DATABASE));
+ DOCUMENT_DATABASE.get()));
CouchbaseDocumentManager manager = factory.apply(db);
LOGGER.log(Level.FINEST, "Starting a CouchbaseDocumentManager instance using Eclipse MicroProfile Config," +
" database name: " + db);
Expand Down

0 comments on commit c10d5d3

Please sign in to comment.