Hi guys I also folowed the madhav suggestion and the mapping issue was solved changing the query pointing to the class name instead to the table name.
My table is called "t_user" and it is mapped to the "User" class
So I changed my query from: "SELECT someColumn FROM t_user ...."
to: "SELECT someColumn FROM User .... "
It works with XML or annotations !!!!
Last edited by devale; Nov 1st, 2010 at 02:35 PM.
You need to keep your table name in (XXX.hbm.xml) file and the entityname in the query SAME. check that