mapping
Purpose
Themapping
static property is used to allow how GORM maps to the underlying 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