I'm implementing a custom pagination in Java and I'm wondering why does Query's setFirstResult() method takes int as an argument? This means that I won't be able to paginate after the rows count in the DB exceeds 2.147.483.647?
Is there a way to use long instead?