hibernate, jsf login validation
===

I'm trying to iterate through my database using Hibernate in MyEclipse to pull username + password for a login page. I have gotten it to work with a connection/resultSet.. but can't seem to get hibernate tools to do this. Could anyone help me out with some pseudocode or guidelines? 