Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 grails 中有一个休眠查询
Book.findAllByRating(4)
在上面的查询中,我只想要 5 个输出。如何将输出限制为 5?
GORM 文档有一些这样的例子。您是否尝试过:
Book.findAllByRating(4, [max:5])