soothsayer_hib wrote:
I know it makes use of HQL...and I have gone through the docs. but wasn't able to see the equivalence of rs.next()
I bet you where hoping for a two liner short answer on how to use Hibernate..
Read this tutorial written by Hibernate
http://docs.jboss.org/hibernate/core/3. ... orial.html Or any other tutorial that you find about Hibernate using google.
Also the equivalent to rs.next() is to create a List<User> user that you fill up, and then loop through it like a normal list. For that you need to create a domain object User, a SessionFactory, mappings, config file etc etc.