From a8bfa29c317bf32ef56d008ee7801447052c6273 Mon Sep 17 00:00:00 2001 From: Yossi Mesika Date: Wed, 21 Oct 2020 13:12:01 +0300 Subject: [PATCH] Support setting multiple OrientDB configuration properties --- .../com/slimgears/rxrepo/orientdb/OrientDbRepository.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rxrepo-orientdb/src/main/java/com/slimgears/rxrepo/orientdb/OrientDbRepository.java b/rxrepo-orientdb/src/main/java/com/slimgears/rxrepo/orientdb/OrientDbRepository.java index 870ef1f4..b28e1878 100644 --- a/rxrepo-orientdb/src/main/java/com/slimgears/rxrepo/orientdb/OrientDbRepository.java +++ b/rxrepo-orientdb/src/main/java/com/slimgears/rxrepo/orientdb/OrientDbRepository.java @@ -132,6 +132,11 @@ public final Builder setProperty(String key, Object value) { return this; } + public final Builder setProperties(@Nonnull Map properties) { + properties.forEach(this::setProperty); + return this; + } + public final Builder url(@Nonnull String url) { this.url = url; return this;