exists
Purpose
Checks whether an instance exists for the specified idExamples
def accountId = … if (Account.exists(accountId)) { // do something }
Description
Parameters:- id- The id of the object
| 
                (Quick Reference)
                 existsPurposeChecks whether an instance exists for the specified idExamplesdef accountId = … if (Account.exists(accountId)) { // do something } DescriptionParameters:
 | Command LineConstraintsControllersDatabase MappingDomain ClassesPlug-insServicesServlet APITag LibrariesTags | 
