I found this named query in an application I'm working on:
from UserBookmark as userBookmark where userBookmark.user.id = :userId order by userBookmark.id desc 5
The query is creating this error after upgrading to hibernate 5:
unexpected token: 5
Is there any legitimate reason for a '5' to be in the query or can I safely get rid of that?