Tuesday, February 2, 2010

Override Default Grails Constraints

The defaults for nullable, blank and the other gorm constraints can be configured in Config.groovy by adding a snippet such as:

grails.gorm.default.constraints = {
'*'(nullable:true,blank:true)
}

No comments:

Post a Comment