if i use table name instead of class name in HQL query like this:
select classname.field name as obj from table name
and i have specified mapping in hbm file. but it show exception: table name is not mapped
and second thing is i have use on keyword in query then it show exception: unexpected token: on