There are nodes *Propertythat you can use in the criteria to compare two properties.
In your case, you need something like:
def c = Tournament.createCriteria()
def results = c {
gtProperty 'prize', 'entryFee'
}
There are geProperty, eqProperty, neProperty, ltPropertyand lePropertyfor more than an equal, equal, not equal, less and less equal, respectively.
source
share