我有一个Class
的继承树class Perfer{
String param
String value
}
class PerferChp extends Prefer{
static belongsTo=[chp:Chp]
}
class PerferSec extends Prefer{
static belongsTo=[sec:Sec]
}
当我尝试将域类作为参数传递时,我试试这个:
Prefer find(GormStaticApi<Prefer> preferenceFamily,String param){
preferenceFamily.findByParam(param);
}
但徒劳无功