get
Purpose
Retrieves an instance of the domain class for the specified id, otherwise returns nullExamples
def b = Book.get("4c0cceac61b32d536cc6fdfb")
Description
Parameters:id
- The id of the object to retrieve. Alternatively, you can pass a com.mongodb.DBRef or a com.google.code.morphia.Key object.