code: public static void checkQuery(SpiQuery<?> query, ListExpressionValidation validation, boolean ignoreUnknown) {
          if (query != null) {
              validate(query.getWhereExpressions(), validation, ignoreUnknown);
              validate(query.getHavingExpressions(), validation, ignoreUnknown);
              validate(query.getOrderBy(), validation, ignoreUnknown);
  
              Set<String> invalid = validation.getUnknownProperties();
  
              if (!ignoreUnknown && !invalid.isEmpty()) {
                  UnprocessableEntityException.throwQuery(invalid);
              }
          }
      }
docs: <p>checkQuery.</p>
  
  @param query         a {@link io.ebeaninternal.api.SpiQuery} object.
  @param validation    a {@link ameba.db.ebean.internal.ListExpressionValidation} object.
  @param ignoreUnknown a boolean.