Quelle est la bonne façon de faire quelque chose comme ça avec Grails:validation Grails dépendant d'autres attributs
class myDomainThing {
String description
MyOtherDomainThing otherThing
static constraints = {
description(nullable:if(otherThing))
otherThing(nullable:if(description))
}
}
Je suis donc soit veux qu'il y ait un lien vers le otherDomainThing ou je veux une description de chaîne.