Last active
December 16, 2015 20:04
-
-
Save ishults/42b4f619b3918d779d05 to your computer and use it in GitHub Desktop.
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.igor | |
import grails.validation.Validateable | |
@Validateable | |
class GormTagLibUser { | |
String username | |
String firstName | |
String middleName | |
String lastName | |
Integer age | |
static constraints = { | |
username(maxSize: 50) | |
firstName(size: 0..25) | |
middleName() | |
lastName(size: 0..20, maxSize: 30) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment