Allow the identity metadata to specify primary keys for generation of hashCode & equals and other peristent stuff...
class Customer {
[identity name, foo]
int foo
Address* addresses
PhoneNumber+ numbers
String! name
Employee? employee
Date{d| assert d > 1000} dob
}
It's not in Groovy per-se, but one can easily reuse GORM standalone in Groovy.