table
目的 Purpose
Customizes the name of the database table associated with the domain class使用例 Examples
class Book { static mapping = { table "book_catalog" } }
詳細 Description
Usage:
使用方法: table(string/map)
Usage:
table(string/map)
引数: Arguments:
name
- The table nameschema
(optional) - The table schemacatalog
(optional) - The table catalog
ProductReview
becomes product_review
. You can override this with the table
method:static mapping = { table "book_catalog" }
static mapping = { table name: "book_catalog", schema: "dbo", catalog: "CRM" }