Hi Johan,
You need to keep your table name in (XXX.hbm.xml) file and the entityname in the query SAME. check that