- All Implemented Interfaces:
- FinderMethod, QueryBuildingFinder
public class FindAllByBooleanFinder
extends FindAllByFinder
The "findAll<booleanProperty>By*" static persistent method. This method allows querying for
instances of grails domain classes based on a boolean property and any other arbitrary
properties.
eg.
Account.findAllActiveByHolder("Joe Blogs"); // Where class "Account" has a properties called "active" and "holder"
Account.findAllActiveByHolderAndBranch("Joe Blogs", "London"); // Where class "Account" has a properties called "active', "holder" and "branch"
In both of those queries, the query will only select Account objects where active=true.