Grails 1.1 表名和列名 - 表名

类映射到数据库的表名可以通过使用 table关键字来定制:class Person { .. static mapping = { table 'people' } }在上面的例子中,类会映射到 people 表来代替默认的 person表.