public org . grails . datastore . mapping . query . api . Criteria geProperty ( String propertyName , String otherPropertyName ) { if ( ! validateSimpleExpression ( ) ) { throwRuntimeException ( new IllegalArgumentException ( "Call to [geProperty] with propertyName [" + propertyName + "] and other property name [" + otherPropertyName + "] not allowed here." ) ) ; } propertyName = calculatePropertyName ( propertyName ) ; otherPropertyName = calculatePropertyName ( otherPropertyName ) ; addToCriteria ( Restrictions . geProperty ( propertyName , otherPropertyName ) ) ; return this ; }
Creates a Criterion that tests if the first property is greater than or equal to the second property