0
什么是做这样的事情在Grails正确的方法:Grails的验证依赖于其他属性
class myDomainThing {
String description
MyOtherDomainThing otherThing
static constraints = {
description(nullable:if(otherThing))
otherThing(nullable:if(description))
}
}
所以我要么希望这是给otherDomainThing链接或我想要一个字符串描述。