This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Presumably you'd only want to select from the table where the user name and password are the same as the values on the form, no? So change your HQL. If you get a result, it means there's a user with that username and password. If you don't, there isn't, and login has failed.
Joined: Sep 10, 2009
Check this code and correct. I am new to hibernate