Last active
December 21, 2016 06:15
-
-
Save houdq/bedd92b49da15afdc68bb0fcd5392092 to your computer and use it in GitHub Desktop.
Revisions
-
houdq revised this gist
Dec 21, 2016 . 1 changed file with 4 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,10 @@ ``` class User { String id = UUID.randomUUID().toString() static mapping = { id generator:'assigned' } } ``` -
houdq created this gist
Dec 21, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ ``` package gtestuuid class WithUUID { String name static constraints = { } static mapping = { id generator: 'uuid' } } ```