Does anyone know if HQL has a keyword to identify rows such as ROWID or ROWNUM?
I would like to implement pagination with HQL but I am not able to use .setMaxResult(
Well, you can in principle access ROWNUM/ROWID from HSQL (though I've never used it). See e.g. Ron's Weblog. That should work.
But I'd like to point out that you're really working against Hibernate and HSQL if you do it like that. The proper way is to use setMaxResult() & friends. If you cannot do that b/c of your architecture, I'd at least reconsider my architectural decisions. I know these are always tough changes to make, but it might be worth it.