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()