Hello,
What I would like to do is something like:
Code:
session.createQuery("FROM Entry e LEFT JOIN e.pilot WHERE e.id IN (SELECT e.id FROM Entry e OFFSET 100 LIMIT 10 ORDER BY e.id ASC)");
However Hibernate struggles with the OFFSET-Keyword. Is there anything I can do to make it tolerate it?
If possible I would prefer not to use createSQLQuery.
I also had a look at the Criteria-API which I prefer, however DetachedCriteria lacks the Methods setFirstResults() and setMaxResults() which I would require :(
Thank you in advance, Clemens