The mapping 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.


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 

Uses the ORM DSL to map the Person class onto a table called people