Skip to content

Instantly share code, notes, and snippets.

@ishults
Last active December 16, 2015 20:04
Show Gist options
  • Save ishults/42b4f619b3918d779d05 to your computer and use it in GitHub Desktop.
Save ishults/42b4f619b3918d779d05 to your computer and use it in GitHub Desktop.
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