vertx/src/main/java/eu/internetofus/common/vertx/Repository.java
/**
   * Create a query to return the document that has a schema version less than the
   * specified.
   *
   * @param version that the document has to be less than.
   *
   * @return the query to return the models that has a different schema version.
   *
   * @see #schemaVersion
   */
Create a query to return the document that has a schema version less than the
specified.

@param version that the document has to be less than.

@return the query to return the models that has a different schema version.

@see #schemaVersion
Create a query to return the document that has a schema version less than the specified . @param version that the document has to be less than . @return the query to return the models that has a different schema version . @see #schemaVersion
protected JsonObject createQueryToReturnDocumentsWithAVersionLessThan(final String version) {
    final var notExists = new JsonObject().put(SCHEMA_VERSION, new JsonObject().put("$exists", false));
    final var notString = new JsonObject().put(SCHEMA_VERSION,
        new JsonObject().put("$not", new JsonObject().put("$type", "string")));
    final var notEq = new JsonObject().put(SCHEMA_VERSION, new JsonObject().put("$lt", version));
    final var query = new JsonObject().put("$or", new JsonArray().add(notExists).add(notString).add(notEq));
    return query;
  }
protected JsonObject createQueryToReturnDocumentsWithAVersionLessThan ( final String version ) { final var notExists = new JsonObject ( ) . put ( SCHEMA_VERSION , new JsonObject ( ) . put ( "$exists" , false ) ) ; final var notString = new JsonObject ( ) . put ( SCHEMA_VERSION , new JsonObject ( ) . put ( "$not" , new JsonObject ( ) . put ( "$type" , "string" ) ) ) ; final var notEq = new JsonObject ( ) . put ( SCHEMA_VERSION , new JsonObject ( ) . put ( "$lt" , version ) ) ; final var query = new JsonObject ( ) . put ( "$or" , new JsonArray ( ) . add ( notExists ) . add ( notString ) . add ( notEq ) ) ; return query ; }
Create a query to return the document that has a schema version less than the
 specified.
Create a query to return the document that has a schema version less than the specified .