(Quick Reference)

ident

目的
Purpose

Returns the value of the identity property of the domain class regardless of the name of the identity property itself

使用例
Examples

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

println b.ident()