mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-20 12:45:35 +00:00
adjusted all MongoDB 4.3.1 incompatibilities from a compilation perspective; see what Hudson says...
This commit is contained in:
+3
-3
@@ -9,7 +9,7 @@ import org.bson.Document;
|
||||
import com.mongodb.client.FindIterable;
|
||||
import com.mongodb.client.MongoCollection;
|
||||
import com.mongodb.client.model.IndexOptions;
|
||||
import com.mongodb.client.model.UpdateOptions;
|
||||
import com.mongodb.client.model.ReplaceOptions;
|
||||
import com.sap.sse.filestorage.FileStorageServicePropertyStore;
|
||||
import com.sap.sse.mongodb.MongoDBService;
|
||||
|
||||
@@ -60,7 +60,7 @@ public class MongoFileStorageServicePropertyStoreImpl implements FileStorageServ
|
||||
.append(FieldNames.PROPERTY_VALUE.name(), propertyValue);
|
||||
Document query = new Document().append(FieldNames.SERVICE_NAME.name(), serviceName)
|
||||
.append(FieldNames.PROPERTY_NAME.name(), propertyName);
|
||||
propertiesCollection.replaceOne(query, obj, new UpdateOptions().upsert(true));
|
||||
propertiesCollection.replaceOne(query, obj, new ReplaceOptions().upsert(true));
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -76,6 +76,6 @@ public class MongoFileStorageServicePropertyStoreImpl implements FileStorageServ
|
||||
public void writeActiveService(String serviceName) {
|
||||
Document obj = new Document(FieldNames.SERVICE_NAME.name(), serviceName);
|
||||
Document query = new Document();
|
||||
activeServiceCollection.replaceOne(query, obj, new UpdateOptions().upsert(true));
|
||||
activeServiceCollection.replaceOne(query, obj, new ReplaceOptions().upsert(true));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user