Appendix B. GORM query reference
As you saw in the main chapters, Grails gives you plenty of options when it comes to querying. Of those, in this appendix, we focus on Where and Criteria queries, which are closely related. We detail the syntax for both options and also show you how the criteria map between the two. This will allow you to convert between Where and Criteria queries. For example, you may find the query you need in an online blog post in Criteria query form, whereas you may want to use Where queries exclusively in your code.
You can invoke Where queries in several different ways:
There is such a thing as too much choice! The where() method creates a query object but doesn’t execute it. You then use list() if the query can return more than one result, or get() (find() is a synonym) if the query only returns a single domain object or null. The dynamic finders allow you to execute the query and add further criteria in one step.