SyntaxFix
Write A Post
Hire A Developer
Questions
String hql = "select userName from AccountInfo order by points desc 5";
This worked for me without using setmaxResults();
setmaxResults();
Just provide the max value in the last (in this case 5) without using the keyword limit. :P
limit