Skip to content

Instantly share code, notes, and snippets.

@houdq
Last active December 21, 2016 06:15
Show Gist options
  • Select an option

  • Save houdq/bedd92b49da15afdc68bb0fcd5392092 to your computer and use it in GitHub Desktop.

Select an option

Save houdq/bedd92b49da15afdc68bb0fcd5392092 to your computer and use it in GitHub Desktop.

Revisions

  1. houdq revised this gist Dec 21, 2016. 1 changed file with 4 additions and 6 deletions.
    10 changes: 4 additions & 6 deletions uuid_grails.md
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,10 @@
    ```
    package gtestuuid
    class User {
    String id = UUID.randomUUID().toString()
    class WithUUID {
    String name
    static constraints = {
    }
    static mapping = {
    id generator: 'uuid'
    id generator:'assigned'
    }
    }
    ```
  2. houdq created this gist Dec 21, 2016.
    12 changes: 12 additions & 0 deletions uuid_grails.md
    Original 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'
    }
    }
    ```