public org.grails.datastore.mapping.query.api.Criteria le(String propertyName, Object propertyValue) {
        if (!validateSimpleExpression()) {
            throwRuntimeException(new IllegalArgumentException("Call to [le] with propertyName [" +
                    propertyName + "] and value [" + propertyValue + "] not allowed here."));
        }

        propertyName = calculatePropertyName(propertyName);
        propertyValue = calculatePropertyValue(propertyValue);
        Criterion le;
        if (propertyValue instanceof org.hibernate.criterion.DetachedCriteria) {
            le = Property.forName(propertyName).le((org.hibernate.criterion.DetachedCriteria) propertyValue);
        }
        else {
            le = Restrictions.le(propertyName, propertyValue);
        }
        addToCriteria(le);
        return this;
    }
public org . grails . datastore . mapping . query . api . Criteria le ( String propertyName , Object propertyValue ) { if ( ! validateSimpleExpression ( ) ) { throwRuntimeException ( new IllegalArgumentException ( "Call to [le] with propertyName [" + propertyName + "] and value [" + propertyValue + "] not allowed here." ) ) ; } propertyName = calculatePropertyName ( propertyName ) ; propertyValue = calculatePropertyValue ( propertyValue ) ; Criterion le ; if ( propertyValue instanceof org . hibernate . criterion . DetachedCriteria ) { le = Property . forName ( propertyName ) . le ( ( org . hibernate . criterion . DetachedCriteria ) propertyValue ) ; } else { le = Restrictions . le ( propertyName , propertyValue ) ; } addToCriteria ( le ) ; return this ; }
Creates a "less than or equal to" Criterion based on the specified property name and value
@param propertyName The property name
@param propertyValue The property value
@return A Criterion instance