exists
Purpose
Checks whether an instance exists for the specified id and returns true if it doesExamples
if(Account.exists(1)) { // do something }
Description
Parameters:id
- The id of the object
GORM implementation for the MongoDB NoSQL database based on the Morphia library
(Quick Reference)
existsPurposeChecks whether an instance exists for the specified id and returns true if it doesExamplesif(Account.exists(1)) { // do something } DescriptionParameters:
|