【发布时间】:2013-11-18 19:53:59
【问题描述】:
是否可以在运行时在 grails/groovy 中构造这样的查询?
假设我有:
def query = Person.where {
age in 18..65
}
在运行时我想给它增加权重:
def query = Person.where {
age in 18..65
weight in 100..200
}
可能吗?
【问题讨论】:
标签: grails groovy grails-orm where-clause