Created
August 15, 2012 15:40
-
-
Save boyzoid/3361089 to your computer and use it in GitHub Desktop.
User Domain Class
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.golfleague | |
class User { | |
String id | |
String firstName | |
String lastName | |
String username | |
String password | |
String emailAddress | |
Boolean isAdmin | |
UserType userType | |
Integer currentHandicap | |
static hasMany = [seasons: Season, scores: Score] | |
static mapping = { | |
sort lastName: "asc", firstName: "asc" | |
} | |
static constraints = { | |
id maxSize: 32 | |
firstName maxSize: 30 | |
lastName maxSize: 30 | |
username maxSize: 30 | |
password maxSize: 255 | |
emailAddress maxSize: 100, email: true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment