我有2个(简化)课程如下:
第1课:
glShadeModel(GL_SMOOTH);
glHint(GL_POLYGON_SMOOTH_HINT, GL_FASTEST);
glEnable(GL_POLYGON_SMOOTH);
第2课:
class Inventory {
Part part ..
.. and other stuff ..
}
不'拥有','属于'或任何东西..
我有标准查询(这个简单模型有点过分,但真正的模型更复杂)..我在其中
class Part{
String code
String description
}
当我运行这个时,我得到一个错误,说没有找到字段代码?
def results = Inventory.createCriteria().list(params) {
if(searchValue) {
or {
part {
ilike('code', "%${searchParam}%")
ilike('description', "%${searchParam}%"))
}
}
}
我做错了什么?我意识到我可以把它改成'哪里'或者其他什么,但我对为什么'这不起作用感兴趣?是因为我还没有把它定义为 'hasOne'或..无论
谢谢