grailsでこのようなことをする正しい方法は何ですか:
class myDomainThing {
String description
MyOtherDomainThing otherThing
static constraints = {
description(nullable:if(otherThing))
otherThing(nullable:if(description))
}
}
したがって、otherDomainThingへのリンクがあるか、文字列の説明が必要です。