Created
November 8, 2013 11:59
-
-
Save asuraphel/7370028 to your computer and use it in GitHub Desktop.
Domain class from Grails in Action book
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 characters
package com.grailsinaction | |
class User { | |
String userId | |
String password | |
String homepage | |
Date dateCreated | |
static constraints = { | |
userId(size: 3..20, unique: true) | |
password( size: 6..8) | |
homepage( url: true, nullable: true) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment