1

Is there a way to group domain object constraints? Something like this:

static constraints = {
    personalDetails {
        firstName(nullable: false)
    }
    address {
        street(nullable: false)
    }
}

Rich domain plugin does this for NON-domain objects... I want to do this FOR domain objects.

Igor Artamonov
  • 35,450
  • 10
  • 82
  • 113
zoran119
  • 10,657
  • 12
  • 46
  • 88

1 Answers1

0

As i know this format does not supported by Grails. May be shared constraints will help you.

jenk
  • 1,043
  • 7
  • 8