mapping
Purpose
Themapping static property configures how GORM maps the domain class to the database. See the section on the ORM DSL in the user guide for more information.Examples
class Person { String firstName static hasMany = [addresses: Address] static mapping = {
table 'people'
version false
id column: 'person_id'
firstName column: 'First_Name'
addresses lazy: false
}
}Person class onto a table called people

