How to change the default setting of a domain field in Grails to be nullable

I want any field to be nullable in default.

Answers


You can place the following in grails-app/conf/Config.groovy if you are using 1.2+

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

From here

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)
} 

Need Your Help

Custom UITableViewCells not updating (prototype cell)

ios objective-c uitableview

I've seen several similar posts about Prototype cells not updating, and after attempting to follow through on a bunch of answers, I have to post a question of my own. Like many, I have created a

where is swagger for playframework 1.x?

playframework playframework-1.x swagger

The module is still listed on the play site, the link is dead, but the project is very active. Is there a way to get that module or get swagger support in play 1.x?