Difference between getAll, findAll and list in Grails?

    getAll is an enhanced version of get that takes multiple ids and returns a List of instances. The list size will be the same as the number of provided ids. If some of the provided ids are null or there are no instances with these ids, the resulting List will have null values in those positions.

    findAll lets you use HQL queries and supports pagination.  It finds all of domain class instances matching the specified query.

    list finds all instances and supports pagination.

 


ProsperaSoft offers Grails development solutions. You can email at info@prosperasoft.com to get in touch with ProsperaSoft Grails experts and consultants.

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>