Created
January 6, 2012 15:05
-
-
Save jdmr/1570970 to your computer and use it in GitHub Desktop.
Groovy Image Domain
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
class Imagen { | |
String nombre | |
String tipoContenido | |
Long tamano | |
byte[] archivo | |
static constraints = { | |
nombre(maxSize:64,nullable:true) | |
tipoContenido(maxSize:64,nullable:true) | |
tamano(nullable:true) | |
archivo(maxSize:2000000) | |
} | |
static mapping = { | |
table "imagenes" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment