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.
I solved the problem I encountered using exact 'case' of the persistent class.
I had a Message class that is getting persisted to MESSAGES table.
___________________
watch movies online
Last edited by daviidwilson; Nov 1st, 2010 at 06:40 PM.
Hi Johan,
You need to keep your table name in (XXX.hbm.xml) file and the entityname in the query SAME. check that