I need a response to this fairly quickly... A piece of code that was working just quit.
I converted a collection from a <set> to a <bag> both had lazy true, but now the <bag> also has inverse=true. I previously had a smart "iterator" that would page over the collection using the code outlined in 10.13 Tips and Tricks:
Code:
Query q = s.createFilter( collection, "" ); // the trivial filter
q.setMaxResults(PAGE_SIZE);
q.setFirstResult(PAGE_SIZE * pageNumber);
List page = q.list();
When I changed it from a set to a bag (et al), the list returned from this code is empty... Any ideas as to why?