I have a sleeping request in grails
Book.findAllByRating(4)
In the above query, I want only 5 output numbers. How to limit pin 5?
The GORM documentation contains some examples of this. You tried:
Book.findAllByRating(4, [max:5])
Source: https://habr.com/ru/post/1702799/More articles:Difference between title and title of Sharepoint document - workflowСделать синхронное событие async в JavaScript - javascriptFlex Trim Button Shortcuts - flexChanging TreeViewItem template when it is selected - .netнаименее "стоит того" unit test, который вы когда-либо писали? - unit-testingWhat is a more efficient way to remove all children of an HTML element? - javascriptКак написать строку в текстовый файл без удаления/замены любого слова в исходном файле? - cocoaКак удалить точки восстановления Windows в С#? - c#Using GDI + Bitmap - visual-studio-2008Reporting Services 2008: Is there a way to change the properties of an element, depending on how the report is executed? - sql-serverAll Articles