Last active
December 16, 2015 19:49
-
-
Save pvardanega/5487620 to your computer and use it in GitHub Desktop.
Simple Grails domain class
This file contains 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 net.pvardanega | |
class User { | |
String fullname | |
String email | |
Double latitude | |
Double longitude | |
static constraints = { | |
fullname blank: false | |
email blank: false, email: true | |
} | |
public String toString() { | |
return fullname + " (" + email + ")"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment