Thanks ... I figured out the ...
// criteria.setFirstResult(Integer.parseInt(index));
// criteria.setMaxResults(Constants.MAX_PAGE_SIZE);
piece ... left an message about that but looks like it wasn't saved.
Using JPA, it appears that I have to construct my query by manipulating parts and pieces of strings rather than the clean way that hibernate gives you using the criteria API. Other than the ability to use other service providers, I'm beginning to wonder what the real benefit of JPA is ... I'll admit that might be a naive question as I've only started looking at JPA, but so far, I'm not seeing the advantages.
|