0
新中的Grails 2.0,並希望創造在評價一個自定義驗證該客戶ID是客戶的任何幫助。只有現有客戶才能完成評估。謝謝!Grails的自定義驗證的房產從另一個域類
一流的客戶{
String custId
String firstName
String lastName
static constraints = {
custId()
firstName()
lastName()
}
}
評課{
String custId
String comment
static constraints = {
custId()
comment()
}
}