domain对象如下
class Person { String frstName String lastName Integer age }
属性和字段对应定义
class Person { String frstName String lastName Integer age static mapping = { id column:'person_id' frstName column:'person_frst_name' lastName column:'person_last_name' age column:'person_age' version false } }
domain和表名对应定义
class Person { String frstName String lastName Integer age static mapping = { table 'people' } }