【发布时间】:2012-07-06 08:50:16
【问题描述】:
Grails 2.0 的新手,如果在评估中创建 custid 在客户中的自定义验证器,我们将不胜感激。只有现有客户才能完成评估。谢谢!
类客户{
String custId
String firstName
String lastName
static constraints = {
custId()
firstName()
lastName()
}
}
类评估{
String custId
String comment
static constraints = {
custId()
comment()
}
}
【问题讨论】: