vertx/src/main/java/eu/internetofus/common/vertx/Repository.java
/**
   * Store one document.
   *
   * @param collectionName of the collections that contains the model to store.
   * @param model          to store.
   * @param map            function to modify the stored document. If it is
   *                       {@code null} no modification is applied.
   *
   * @return the future stored model.
   */
Store one document.
@param collectionName of the collections that contains the model to store.
@param model          to store.
@param map            function to modify the stored document. If it is
null no modification is applied.

@return the future stored model.
Store one document . @param collectionName of the collections that contains the model to store . @param model to store . @param map function to modify the stored document . If it is null no modification is applied . @return the future stored model .
protected Future<JsonObject> storeOneDocument(@NotNull final String collectionName, @NotNull final JsonObject model,
      final Function<JsonObject, JsonObject> map) {
    model.put(SCHEMA_VERSION, this.schemaVersion);
    return this.pool.insert(collectionName, model).compose(id -> {
      model.remove(SCHEMA_VERSION);
      return this.applyMap(model, map);
    });
  }
protected Future < JsonObject > storeOneDocument ( @ NotNull final String collectionName , @ NotNull final JsonObject model , final Function < JsonObject , JsonObject > map ) { model . put ( SCHEMA_VERSION , this . schemaVersion ) ; return this . pool . insert ( collectionName , model ) . compose ( id -> { model . remove ( SCHEMA_VERSION ) ; return this . applyMap ( model , map ) ; } ) ; }
Store one document.
Store one document .