(Quick Reference)

get

Purpose

Retrieves an instance of the domain class for the specified id, otherwise returns null

Examples

def b = Book.get(1)

Description

Parameters:

  • id - The id of the object to retrieve