Permalink
Browse files

GRAILS-8296 and GRAILS-5520 docs for column and table comment, and co…

…lumn default value
  • Loading branch information...
1 parent 8e21d37 commit b4f17a12e3ee5ef8017be8ce1ff9817dd3913dd6 Burt Beckwith committed Sep 30, 2012
Showing with 25 additions and 0 deletions.
  1. +2 −0 src/en/ref/Database Mapping/column.gdoc
  2. +23 −0 src/en/ref/Database Mapping/comment.gdoc
@@ -26,6 +26,8 @@ Arguments:
* @length@ (optional) - The length of the column
* @precision@ (optional) - The precision of the column
* @scale@ (optional) - The scale of the column
+* @comment@ (optional) - The comment for the column (used to create the table DDL)
+* @defaultValue@ (optional) - The database default value
By default GORM uses the property name and type to determine how to map a property in the database. For example a @String@ property is typically mapped as a @varchar(255)@ column. You can customize these with column configuration arguments:
@@ -0,0 +1,23 @@
+h1. comment
+
+h2. Purpose
+
+Sets the comment to use when generating the table's creation SQL (DDL).
+
+h2. Examples
+
+{code:java}
+class Book {
+ static mapping = {
+ comment "your comment here"
+ }
+}
+{code}
+
+h2. Description
+
+Usage: @comment(string)@
+
+Arguments:
+
+* @comment@ - The comment

0 comments on commit b4f17a1

Please sign in to comment.