當我寫這個的HQL:的Grails的FindAll順序按不工作HQL
tempDocs = Document.findAll("FROM Document where docName LIKE :docn ORDER BY status asc",[docn:string],[max:limit, offset:startIndex])
是正確的工作。 但是,當我試圖通過編寫
tempDocs = Document.findAll("FROM Document where docName LIKE :docn",[docn:string],[max:limit, offset:startIndex,sort:column,order:ordering])
來概括呢?這似乎並沒有給出正確的順序。這裏出了什麼問題?
你能試試我的建議嗎? – th3morg 2014-11-21 01:34:21