I need to combine 2 tables using hql, both are having common column, but table1 common column is integer and table2 common column is <
table1
integer
table2
Just noticed that you are using JPA, there you can not cast or convert datatpes. In the query language, only values of the same type can be compared! read in http://download.oracle.com/javaee/5/tutorial/doc/bnbuf.html#bnbvu