(Quick Reference)

properties

Purpose

Allows access to the domain class properties as a Map and is typically used for data binding to perform type conversions allowing properties to be set from request parameters or other Maps.

Examples

def b = new Book(title: "The Shining")
b.properties = params
b.save()