code: public org.grails.datastore.mapping.query.api.Criteria between(String propertyName, Object lo, Object hi) {
          if (!validateSimpleExpression()) {
              throwRuntimeException(new IllegalArgumentException("Call to [between] with propertyName [" +
                      propertyName + "]  not allowed here."));
          }
  
          propertyName = calculatePropertyName(propertyName);
          addToCriteria(Restrictions.between(propertyName, lo, hi));
          return this;
      }
docs: Creates a "between" Criterion based on the property name and specified lo and hi values
  @param propertyName The property name
  @param lo The low value
  @param hi The high value
  @return A Criterion instance