title: Grails global constraints
body: <p>In version 1.2, Grails introduced global constraints. I tried adding the following to Config.groovy</p>
  
  <pre><code>grails.gorm.default = {
  
      constraints {
          notBlank(nullable:false, blank:false)
      }
  }
  </code></pre>
  
  <p>Then using it in one of my domain classes</p>
  
  <pre><code>static constraints = {
      email(email: true, unique: true, shared: 'notBlank')
  }
  </code></pre>
  
  <p>But when I save a user with a null e-mail address, no errors are reported, why?</p>
  
  <p>Thanks,
  Don</p>