concept criterion in category grails

appears as: criteria, criteria, criterion
Grails in Action, Second Edition

This is an excerpt from Manning's book Grails in Action, Second Edition.

Figure 5.6. The placement of variables in Where criteria is important

This example uses advanced techniques, such as evaluating the properties that exist on a class. But it’s not important for you to understand these techniques. The key point is that you can use the values from the form (queryType, field, and value) to build the criteria for the query at runtime. If you’d like to experiment with this code, you can find it in the chapter source code on GitHub. The advanced search form is in the grails-app/views/user/advSearch.gsp file and the advResults action is in UserController.groovy.