Remember that with Hibernate you are qureying in HQL unless you specifically specify SQL. So:
is looking for all userinfo Objects in a Hibernate Session, not for the contents of the userinfo table. Are there any objects in the Session with that name? Well unless you've defined it elsewhere, then no. But there is a UserInfo.
Joined: Aug 17, 2002
Thanks you to give me advises ,Lasse Paul. And finally I know what is wrong. I give the mapping name uncorrently.