So right now I have a program containing a piece of code that looks like this...
Criteria crit = session.createCriteria(Product.class); ProjectionList projLi
You could use Generic in List and for each but for current code you could do following to iterate
for(int i = 0 ; i < results.size() ; i++){ Foo foo = (Foo) results.get(i); }
Or better to go for readable for-each loop
for(Foo foo: listOfFoos){ // access foo here }